NEW YORK — The champagne the Los Angeles Kings had ready for a coronation stayed in boxes. The New York Rangers suddenly have some life in the Stanley Cup finals.

Henrik Lundqvist made 40 saves and had the Madison Square Garden crowd chanting his name in the Rangers’ 2-1 victory in Game 4 that kept the Los Angeles Kings from sweeping them on Wednesday night.

Benoit Pouliot and Martin St. Louis each scored for the Rangers, who kept the Kings at bay. Los Angeles leads the series 3-1 and will get its second shot to claim the Cup for the second time in three years Friday night at home.

Los Angeles hoped to become the first team since 1998 to complete a sweep in the finals. Now the Rangers will try to become the second team to erase a 3-0 hole in the finals and go on to win the Cup. The Kings had that kind of comeback in the first round against San Jose.

“It’s not impossible,” Lundqvist said. “They’ve done it.”

Twice Los Angeles put the puck on the goal line, but couldn’t get it all the way across. The last came with 1:11 left in the game when Rangers forward Derek Stepan pushed the puck out of danger in the crease after it got behind Lundqvist.

Pouliot scored 7:25 into the first period and St. Louis added a goal in the second for the Rangers. New York squandered multiple two-goal advantages in losing the first two games in overtime in Los Angeles.

Not this time.

Lundqvist and the Rangers continued their mastery of extending their seasons. New York is 11-2 in the past 13 games when facing elimination, and Lundqvist was in goal for all of them.

The Rangers also have won an NHL-record eight consecutive home games when facing elimination, dating to 2008, behind Lundqvist.

New York has also won a home game in 15 consecutive playoff series, tying a league mark.

The Kings pressed for the tying goal in the third period and outshot the Rangers 15-1 in the frame and 41-19 overall.

“I think we sat back a little too much in the third period. But we didn’t blow the lead this time,” Stepan said.

Two nights after Jonathan Quick stopped 32 shots in a 3-0 victory that put the Kings on the brink of another championship, Pouliot got a puck past him.

St. Louis then put in a rebound at the left post 6:27 into the second, giving the Rangers their fifth two-goal lead of the series. But just like in Games 1 and 2, a two-goal deficit sparked the Kings.

At the tail end of a Rangers power play, New York defenseman Dan Girardi broke his stick and lost the puck to Kings captain Dustin Brown for a breakaway the other way.

Brown made several moves in front of Lundqvist before tucking a forehand inside the right post to make it 2-1 with 11:13 left in the second.

The Kings had a chance to get even, but the Rangers killed Dominic Moore’s cross-checking penalty late in the period. Jeff Carter then got behind Girardi before being stopped on a breakaway by Lundqvist.

John Moore fired a drive from the center of the blue line that Pouliot deflected high with his stick blade into the top right corner behind Quick, who finished with xx saves.

The Kings almost tied it at 1-1 with 8:11 left — seconds into a power play — when defenseman Alec Martinez’s shot got behind Lundqvist and slid along the red goal line without crossing it. Rangers defenseman Anton Stralman cleared the puck away as Jeff Carter and Marian Gaborik pressured in the crease.

Video replay clearly showed that the puck didn’t go over the line.

Madison Square Garden had a different feel than the festive atmosphere of Game 3 when the Rangers returned home from Los Angeles. There were no t-shirts draped over the seats, and some of the seats in prime-viewing areas were empty. But as the Rangers started to score, the crowd slowly came alive, roaring in approval.