Artemi Panarin and Jimmy Vesey both scored twice to lead the New York Rangers to a 5-3 comeback win over the New Jersey Devils.