FOXBOROUGH, Mass. — This was … fun.

That is how Kyle Lauletta described his time on the field Thursday night, as he led a torrid second-half comeback from a 19-point halftime deficit to throw the game-winning touchdown pass to Alonzo Russell with no time remaining, giving the Giants a 31-29 preseason victory over the Patriots at Gillette Stadium.

“Yeah, we’re down, and I knew going into halftime we were going to need a pretty great effort from the offense to come back and win it,’’ Lauletta said. “It’s fun. One drive to go down and win the game? What more can you ask for?’’

Lauletta aired it out all night in his final chance to make an impression before Saturday’s roster cut-down to 53 players. He is a 2018 fourth-round pick of general manager Dave Gettleman, but that doesn’t mean Lauletta is a sure-thing to remain with the Giants once this weekend’s roster maneuverings are complete. He helped himself in the preseason finale in his battle with Alex Tanney for the No. 3 quarterback spot.

Tanney got the call first, tossed a 35-yard touchdown pass to Russell but was not sharp, completing only 4 of 12 passes for 53 yards and two interceptions. Lauletta was 22 of 40 for 248 yards and two touchdowns and he directed a 15-play, 70-yard drive for the deciding points.

“I thought Kyle did a good job on that last drive there in kind of engineering that drive,’’ coach Pat Shurmur said.

Tanney was the No. 3 quarterback during training camp as far as practice work.

“I think outside the building, everybody’s kind of had the quarterbacks stacked up in their minds the way they wanted to stack them up,’’ Shurmur said.

The Giants did not play their starters, but some of their reserves got banged up a bit. TE Scott Simonson made a lunging grab in the end zone for a 27-yard touchdown reception, but paid for it when he came down hard on his left ankle. Simonson could not get to his feet and had to be carted off the field.

WR T.J. Jones limped off after a punt return late in the third quarter, was able to return but was knocked out for good with a lower right leg issue after failing to grab a fourth-down pass while getting leg-tackled by Keion Crossen.

LB Keion Adams was carted off the field in the second quarter with a knee injury. … WR Brittan Golden left with a calf injury. … CB Ronald Zamort was forced out with an ankle injury. … LB Nate Stupar left in the third quarter with a concussion.

WR Golden Tate, who next week will begin to serve his four-game ban for violating the NFL’s banned substance policy, is set to discuss the parameters of his suspension Friday with team officials.

“We’re going to go over what’s OK and what’s not OK, because obviously we don’t want to break any rules, and I’m not familiar with the rules,’’ Tate said. “As much as I [am permitted] to talk to my coaches and talk to my teammates and be a part of the game plan and watch the film, I’m going to do that.’’

The Giants finished 4-0 in the preseason, their first undefeated summer since they went 5-0 in 2014.