TORONTO — Scoring just a single goal through four losses in their first six games of the season, the Rangers are painfully aware of the imbalance in their game.

The 2-1 overtime loss to the Maple Leafs on Thursday night — after Auston Matthew scored 58 seconds into the extra period — was just the latest display of the Blueshirts offensive deficiencies undermining their defensive effort.

It’s been three straight games of the same story and three straight defeats.

For head coach Mike Sullivan and the Rangers, the task now is to maintain the defensive level they’ve reached while breaking through on the offensive side of their game.

Not allowing their struggles to poison their confidence, however, will be just as crucial as finding the back of the net with some consistency.

“That’s the easy thing to do, and if you’re mentally weak, you’re going to go off the rails,” Rangers captain J.T. Miller said after the game. “Because this isn’t working on paper. To me, it’s about getting the look. It’s not about if it goes in. Over time, you get the looks, they’re going to go in. It’s just easy to go the other way right now and that’s why we’re going to be mentally tough in here and we’re going to keep pounding pucks at the net and outplaying the teams we’re playing against. It’s going to work eventually.”

Anthony Stolarz of the Toronto Maple Leafs makes a save against Sam Carrick #39 of the New York Rangers. NHLI via Getty Images

Mika Zibanejad whiffed on a shot that sent Matthews and William Nylander on a two-on-one rush. Nylander dragged the puck around a sliding Fox to set the Maple Leafs captain up for an easy tap-in past Rangers goalie Igor Shesterkin less than a minute into overtime.

It was one of the only odd-man rushes the Rangers have been burned on early this season, after the team struggled mightily to limit and contain such chances on a consistent basis last year.

Braden Schneider of the New York Rangers plays the puck. NHLI via Getty Images

It’s true, the Rangers have looked like a different team in the defensive zone compared to last season. Not only have the Rangers remained disciplined in their structure, they have outshot their opponents in their last four straight games.

Offensively, the Rangers have simply not had that finishing touch.

Call it a snakebitten lineup, or call it a team that hasn’t had puck luck on their side. Either way, the offensive rut has cost the Rangers some crucial points to start the season.

Maple Leafs’ Auston Matthews (34) battles for the puck with New York Rangers’ Will Borgen (17) . AP

Igor Shesterkin #31 of the New York Rangers makes a save against Easton Cowan #53 of the Toronto Maple Leafs. NHLI via Getty Images

“We’re getting good looks,” Fox said. “I think everyone could kind of feel that, but we’ve definitely got to finish on those chances, too. It’s not just a game of expected goals. You’ve got to actually finish it.”

Less than five minutes into the third period, the Rangers snapped a 170:39 scoreless streak that dated back to the third period of last Saturday’s game in Pittsburgh.

Juuso Parssinen, back in the lineup after serving as a healthy scratch in the previous two games, got a stick on a Braden Schneider shot from the top of the zone to knot the game at 1-1.

Rangers forward J.T. Miller (8) moves the puck past Toronto Maple Leafs defenseman Brandon Carlo. Dan Hamilton-Imagn Images

The Rangers still went scoreless through the first two periods to make it eight straight frames without a goal. Failing to break the seal set in the previous two games at Madison Square Garden, the Rangers fell behind in the opening period Thursday.

After trading off a couple of power plays, the home team capitalized first with the man advantage. Nylander’s shot pinballed through traffic before going in off Matthew Knies for the 1-0 lead.

“The key for me right now is we got to make sure we don’t get discouraged,” Sullivan said. “It was a big point for us. It’s an important point for us. We’ve got to make sure that we control our own mindsets here moving forward. I think our intentions are in the right place.”