St. John’s can stop sweating — for now.

The Red Storm took another step away from the NCAA Tournament bubble and a big step toward making the field for the first time in four years with a vital 58-57 win over Xavier on Monday night at Madison Square Garden, completing a season-sweep of the Musketeers after Myles Davis’ potential game-winning jumper missed in the final seconds.

With three games remaining in the regular season, St. John’s (19-9, 8-7) is set up better than its fans could have imagined after losing five of its first seven conference games, having now won five of its past six games and five straight at home.

“It’s looking good right now,” senior Sir’Dominic Pointer said of the team’s tournament hopes. “As long as we keep playing our game and winning, we’ll be fine. We’ve got our fate in our hands right now. As long as we keep winning and playing the best basketball we can, everything will work out.”

The back-and-forth game featured wild swings and double-digit deficits in both directions — Xavier had 20 more rebounds and St. John’s forced 12 more turnovers — but Pointer and fellow senior D’Angelo Harrison showed their poise in one of the biggest games of their careers, combining for 39 points to knock off Xavier (18-11, 8-8) for the second time in the past 10 days.

St. John’s appeared headed back toward the bubble in the game’s opening minutes, falling behind 11-0 while mimicking the poor start at Xavier last weekend. Struggling to score, the Red Storm ripped off a 20-2 run with their defense once Chris Obekpa was brought off the bench. Immediately altering the tenor of every possession, Obekpa registered three blocks and five steals in the first half.

Suddenly rattled, Xavier missed 15 of its next 16 shots while struggling to complete a pass or string two dribbles together, resulting in 14 first-half turnovers and a 28-20 St. John’s lead at halftime, with the Big East’s highest-scoring team recording its lowest point total in a half this season.

“[Obekpa] intimidated on quite a few [plays],” Xavier coach Chris Mack said. “He does that.”

While Obekpa sparked the defense, Pointer carried an offense without a hint of hope, hitting five of his first six shots while his teammates missed 14 of their first 17. Scoring 13 of his first 19 points in the first half, Pointer filled every inch of the box score in another incredible all-around performance, adding nine rebounds, six blocks, four steals and three assists.

“At this point, there’s nothing Dom can do that would surprise us,” coach Steve Lavin said. “Like a tornado ripping up and down the court, he’s a force of nature, he just imposes his will on the game. … You can’t really prepare for it. How do you prepare for a tornado ripping up and down the basketball court?

“He’s as unique a talent as I’ve coached in my career.”

Trailing by 10 early in the second half, Xavier unexpectedly awoke, with Trevon Bluiett (17 points) leading a 15-0 run, but St. John’s would regain the lead, 45-43, on a 3-pointer by Harrison (20 points) with 6:30 remaining. Up five with less than two minutes remaining, St. John’s found itself approaching disaster after Remy Abell stripped Harrison from behind with 16 seconds remaining and the Musketeers down one.

Familiar panic built in the Garden, with the frustration of three years amplifying the pressure in the final possession. Davis got a decent look, but like so many times this season, the ball bounced St. John’s way.

A few more bounces and St. John’s will be back in the NCAA Tournament.

“We make things really dramatic for no reason,” Harrison said. “We win Saturday [against Georgetown], we’ll have a little bit more breathing room.”

For the first time in a long time, St. John’s can breathe easy.