No team has ever hit more homers in a month than the Yankees did in August.

And perhaps none of the 73 home runs hit before DJ LeMahieu stepped to the plate to lead off the bottom of the 11th on Saturday were more important than his blast, a game-winner on the first pitch of the inning that sent the Yankees to a 4-3 win over the A’s in The Bronx.

It came after Oakland had won the first four meetings between the two potential October opponents, and the Yankees were close to dropping another before Aaron Judge tied the game with one of the team’s four home runs on Saturday and then LeMahieu won it.

The Yankees’ most consistent hitter this season said he wasn’t thinking about ending the game when he came to the plate against Lou Trivino.

“I get in trouble when I try to do too much at the plate,’’ LeMahieu said. “I tried to see a pitch to hit and hit something hard. That was hard enough for me to do the first four at-bats.”

LeMahieu struck out three times for just the second time this year before he slammed the first pitch he saw into the right field seats. It was the team’s fourth solo homer of the afternoon — including two from Gary Sanchez — and they needed every one.

But the Yankees didn’t reverse their fortunes against the A’s with home runs alone.

Judge also robbed Matt Chapman of an extra-base hit — and maybe a home run — with a leaping catch near the wall in right to end the top of the 10th.

And after another solid effort from Domingo German, who allowed two runs in five innings, the bullpen was good. But it did provide some drama.

Jonathan Loaisiga, recalled from Triple-A Scranton/Wilkes-Barre before the game after CC Sabathia was placed on the 10-day injured list with right knee inflammation, loaded the bases with one out in the sixth before getting out of it — thanks to a terrific, long sidearm throw from Didi Gregorius at shortstop to get Chris Herrmann to end the inning.

The A’s went ahead in the seventh against Adam Ottavino on an RBI double by Chapman, though the ball appeared to land foul, alongside the left-field line.

Aaron Boone opted not to challenge the call, a move he regretted after the game.

“That’s on me,’’ said Boone, who added he thought about challenging it, but ran out of time. “To have those guys bail me out on that [in the end] is huge.’’

It was the first run given up by Ottavino in eight appearances and only the second time he had been scored on since July 2.

Ottavino then loaded the bases, but Tommy Kahnle got Jurickson Profar to pop to left to keep it a one-run game.

Britton got two outs in the eighth before leaving with a cramp in his right calf. Chad Green loaded the bases but got out of it, and

Aroldis Chapman pitched around a pair of two-out walks and finally got pinch-hitter Josh Phegley swinging to end the top of the ninth.

Boone then went to recently acquired right-hander Cory Gearrin, who tossed two shutout innings to pick up the win.

LeMahieu took care of the rest.

After the Yankees failed to hit a homer Friday for the first time in 11 games, they reverted to form Saturday and finished the month with 22 home runs in their last eight games.

“With our lineup, records like that are gonna be broken,’’ LeMahieu said. “Obviously, it was a pretty good month for us offensively.’’

And LeMahieu finished it off with a bang.

“We don’t see DJ have too many days where he struggles at the plate,’’ Boone said. “Jumping on the first pitch and driving out a no-doubter to right, he’s been coming through for us all year. And just when you think he’s down a day, he comes up huge.”