The Golden Knights’ Erik Haula (56) celebrates after teammate left wing James Neal (not shown) scored against Sharks goalie Martin Jones during the first period of Game 5.

Photo: John Locher / Associated Press

LAS VEGAS — This time, the Sharks lost their cool and composure, and a game. As a result, they’re on the brink of dropping yet another Stanley Cup playoff series at home when this Western Conference semifinal series returns to the Shark Tank late Sunday afternoon.

Vegas was more aggressive and relentless, for most of the game, then held off San Jose in a 5-3 victory before a rowdy and record crowd of 18,693 at T-Mobile Arena that gave the Golden Knights a 3-2 edge in the best-of-seven series.

When 28-year-old Martin Jones allowed his fourth goal, on Alex Tuch’s break-away tip-in from Cody Eakin’s shot with 11½ minutes remaining, San Jose head coach Peter DeBoer yanked his goaltender — for Aaron Dell — for the second time this series.

Kevin Labanc and Tomas Hertl scored in the ensuing couple of minutes, and Mikkel Boedker made it very interesting when he slapped in a puck from close range on the left side to cut the Sharks’ deficit to 4-3 with 4:16 left. The Golden Knights, however, resisted San Jose’s desperate charges.

DeBoer pulled Dell with 2:21 left, for a 6-on-5 advantage, and nothing to lose. And Jonathan Marchessault doused San Jose’s last-gasp efforts when he slapped in an empty-netter that crossed both blue lines for the final score of the game with 81 seconds left.

Jones previously had faced two other scenarios in which his team, tied 2-2 in a series, played that fifth game on the road. In the 2016 Western Conference finals, he stopped 18 of 21 shots in a 6-3 victory in St. Louis. Last year, Jones stoned 44 shots in Edmonton, but the Oilers won 4-3 in overtime.

In postseason history, the home team — according to HockeyReference.com — entered Friday having won 64.6 percent (382 of 591) of Game 5s.

The Knights pressed Jones in the first 20 minutes, during which Vegas recorded 14 shot attempts to the Sharks’ seven. That 14th was a point-blank back flip by Erik Haula that sailed wide of the right post with 13 seconds left in the opening period.

Vegas retained possession. On the left side, David Perron slipped the puck out to Shea Theodore, whose rocket shot bounced off Jones to the right side, where James Neal — just inside the right face-off circle — sank it in the back of the net for a 1-0 lead with three ticks left.

San Jose nearly capitalized on a Marc-Andre Fleury miscue halfway through the period. Behind his net, the Vegas goalie tried clearing the puck along the boards to the right side, but a Shark vaulted high to stop it, corral it and flip it to Boedker. But then, Fleury had returned between the pipes and he knocked Boedker’s bullet to the side.

Neal’s goal was his second of the series, and his third goal and seventh point of this postseason. That it came from someone on Vegas’ second line was important for his team, because the Knights have been relying heavily on their top line for production. Tuch put in a rebound and Haula made it 3-0 when he slapped one by Jones at an acute angle from the left side on a breakaway.