NEW YORK - (AP) - Ryan Carter snapped a tie with 4:24 left, and the New Jersey Devils posted a 5-3 victory over the New York Rangers after blowing a three-goal lead in Game 5 of the Eastern Conference finals on Wednesday night.

The Devils, who led 3-0 before the first period was half over, have a 3-2 edge in the series and can advance to face the Los Angeles Kings in the Stanley Cup finals with a win at home on Friday night. If the Rangers can stay alive then, Game 7 would be back in Madison Square Garden on Sunday.

The Devils seemed primed for an easy win when Stephen Gionta and Patrik Elias scored within the first 4:13 of the game. Travis Zajac made it 3-0 before the Rangers woke up and began chipping away.

Brandon Prust brought New York within 3-1 before the first period was over, and Ryan Callahan made it a one-goal game in the first minute of the second. The Garden really rocked when Marian Gaborik tied it at 3 just 17 seconds into the third with his first goal of the series.

But the comeback was all for naught. Carter put the Devils back in front, and Zach Parise sealed it with an empty-net goal in the closing seconds.