Michael Del Zotto set up Nash's decisive tally and also supplied a short-handed goal as the Rangers notched a second straight win and joined the Devils in the eighth and final Eastern Conference post-season spot with 32 points.
Henrik Lundqvist played well with 29 saves and Carl Hagelin also scored for New York.
Johan Hedberg made 19 saves in the loss.
Gal Gadot cast as Wonder Woman for 'Batman vs. Superman'
Kate Middleton recycles dress at movie premiere