With tensions mounting and Florida’s Senate and gubernatorial races still undecided, a judge on Monday told both sides to tone down the rhetoric as the Sunshine State once again found itself under the microscope following a close election.

“These words mean things these days, as everybody in the room knows,” Chief Judge Jack Tuter admonished lawyers for both Gov. Rick Scott, the GOP candidate for the Senate, and Democratic incumbent Bill Nelson.

“Everything the lawyers are saying out there at the elections office is being beamed out across the country. We should be careful what we say.”

The judge turned down Scott’s request to “impound and secure” all voting machines in Broward County’s election headquarters when they’re not being used to recount ballots.

Instead, he suggested beefing up security at the site to ensure that there was no tampering with ballots or equipment.

Scott has filed at least five lawsuits since Thursday challenging the legally mandated recounts, while Democrats, a veterans group, the League of Women Voters of Florida and Common Cause Florida filed suits seeking to have all votes counted.

Earlier, a defiant Scott told Fox News that he had already won — even though tens of thousands of ballots had not been counted and millions more needed to be verified.

“We won,” he said. “Bill Nelson is clearly a sore loser. He can’t stand the fact that he’s not going to be elected for, what, the first time in decades. He’s just here to steal the election.”

Nelson scoffed at the charges and called for the governor to recuse himself from the recounts.

“There’s zero evidence backing up claims by Republican extremists that Democrats are trying to steal the election,” Nelson tweeted Monday. “What we’re trying to do is make sure every lawful vote is counted.”

Scott, he added later, “should remove himself from any role in the recount process so the people can have confidence in the integrity of the election.”

As of Saturday, Scott’s lead over Nelson had narrowed to 12,562 votes out of some 8.2 million cast, a margin of 0.15 percent.

In the governor’s race, Republican Ron DeSantis was ahead of Democrat Andrew Gillum by 0.41 percent.

President Trump jumped into the fray on Twitter, demanding that Florida officials stop recounts and declare his candidates the winners — which would disenfranchise US military members serving overseas.

Under Florida’s election laws, the state accepts overseas military ballots through Nov. 16 as long as they are postmarked by Nov. 6.

But the president on Twitter insisted, without offering evidence, that “ballots” were “massively infected” — an unsubstantiated claim similar to his insistence in 2016 that he would have won the popular vote if millions had not voted illegally for Hillary Clinton.

With Post wires