President Trump suggested that he might take legal action against “everyone all over the place” because of then-special counsel Robert Mueller’s investigation into Russian collusion during the 2016 election.

“BUT MAYBE I STILL WILL. WITCH HUNT!,” the president said in a series of tweets Tuesday that also blasted the lawyers who prosecuted his longtime confidant Roger Stone and the origins of the Mueller probe.

“These were Mueller prosecutors, and the whole Mueller investigation was illegally set up based on a phony and now fully discredited Fake Dossier, lying and forging documents to the FISA Court, and many other things,” Trump said.

“Everything having to do with this fraudulent investigation is badly tainted and, in my opinion, should be thrown out. Even Mueller’s statement to Congress that he did not see me to become the FBI Director (again), has been proven false. The whole deal was a total SCAM. If I wasn’t President, I’d be suing everyone all over the place,” he continued.

He began his Twitter tear earlier when he posted comments made by a guest on a Fox News show questioning whether the federal judge in the Stone case would grant his request for a new trial after a juror’s Twitter messages revealed criticism of the president.

He then quoted comments made by former Judge Andrew Napolitano on “Fox & Friends.”

“‘Judge Jackson now has a request for a new trial based on the unambiguous & self outed bias of the foreperson of the jury, whose [sic] also a lawyer, by the way,'” Trump wrote.

“‘Madam foreperson, your [sic] a lawyer, you have a duty, an affirmative obligation, to reveal to us when we selected you the existence of these tweets in which you were so harshly negative about the President & the people who support him,” the president said, still quoting Napolitano. “‘Don’t you think we wanted to know that before we put you on this jury.’”

“‘Pretty obvious he should (get a new trial),” Trump posted.

US District Judge Amy Berman Jackson has scheduled a conference call for Tuesday with the federal prosecutors and Stone’s defense team to discuss the case.

The four federal lawyers who had been involved in prosecuting Stone withdrew last week after the Justice Department overruled their recommendation that Stone serve up to nine years in prison.

The Justice Department sent the judge a letter seeking a more lenient punishment after Trump tweeted about the case, calling it a “miscarriage of justice.”

Of the four prosecutors who withdrew, only two were involved in the Mueller probe.

Stone’s lawyers filed a motion last week seeking a new trial after the Twitter messages of juror Tomeka Hart came to light.

“Ignoring the numerous indictments, guilty pleas, and convictions of people in 45’s inner-circle, some Republicans are asserting that the Mueller investigation was a waste of time because he hasn’t found evidence of,” Hart wrote on Twitter in March 2019, linking to a posting on Facebook that has been deleted.

Stone, who is scheduled to be sentenced Thursday, was found guilty by a jury last November on seven counts, including witness tampering, obstruction and lying to Congress about the investigation into Russian collusion.