Saint-Maximin set up Jacob Murphy for an equaliser before scoring a goal that lifted the Magpies six points clear of danger.