The Rangers, suddenly an offensive juggernaut with 18 goals in their past three games, strengthened their playoff pursuit while officially ending the Devils’ postseason chances.

Ryan Callahan scored twice as the Rangers beat the Devils, 4-1, at Madison Square Garden this afternoon.

The Devils (17-18-10), who advanced to the Stanley Cup final last season before bowing to the Kings in six games, will miss the postseason for the second time in three years after having their modest two-game winning streak snapped. But they were shut out for the third time in five games and for the fourth time in their last nine games.

Meanwhile, the Rangers (24-17-4) won their third straight and improved to 8-2-1 in April. They defeated the Panthers, 6-1, Thursday night at the Garden and won, 8-4, the next night in Buffalo.

The eighth-place Rangers matched the seventh-place Senators with 52 points but Ottawa has four games remaining while the Rangers have three. The Rangers also moved within one point of the sixth-place Islanders, who also have three games to play.