Todd Frazier is likely playing out his final weeks in a Mets uniform and faces an uncertain future as a 33-year-old third baseman headed to free agency.

So there might not be anybody in the Mets clubhouse with a stronger determination these days than Frazier, who desperately wants to help his team reach the postseason while showing he’s worthy of a job in 2020, as many organizations move toward younger, inexpensive players.

Nights like Tuesday serve as a good talking point for Frazier, who delivered two doubles that drove in three runs in this 3-2 Mets victory over the Diamondbacks at Citi Field.

Against the odds, the Mets received six outs from Brad Brach and Justin Wilson without surrendering the lead. That included Wilson striking out this ballpark’s ninth-inning king, Wilmer Flores, with the tying run at third base after Pete Alonso had smothered Ketel Marte’s grounder and stepped on first base for the second out, forgoing a rundown with Tim Locastro who initially retreated toward the bag. Alonso held lead-runner Nick Ahmed at third, allowing Wilson to live for another batter with the lead.