A top FBI agent involved in the investigation of Hillary Clinton’s e-mails told a colleague in 2016 that “we’ll stop” Donald Trump from becoming president, according to the Justice Department’s inspector general.

The explosive comment came during an exchange of text messages between agent Peter Strzok and his lover, FBI lawyer Lisa Page, in August 2016, IG Michael Horowitz’s report revealed Thursday.

“[Trump’s] not ever going to become president, right? Right?!” Page texted Strzok.

“No. No he won’t. We’ll stop it,” Strzok responded.

Despite the stunning anti-Trump comments, Horowitz said he found no evidence that the pair’s political views carried over into their work on the investigations into Russian election meddling and Clinton’s improper use of a private ­e-mail server while she was secretary of state.

“We did not find documentary or testimonial evidence that improper considerations, including political bias, directly affected the specific investigative actions we reviewed,” Horowitz said in the report.

But, he added, “The conduct by these employees cast a cloud over the entire FBI investigation.”

Special counsel Mueller removed Strzok from the probe into the Trump camp’s possible collusion with Russia after the texts were discovered, and Page has since left the FBI.

Despite the IG’s conclusion that their personal views did not influence their work, the White House and GOP lawmakers pounced on the revelation as proof that the FBI was permeated with Trump haters.

“I think it points out the political bias that the president’s been talking about . . . and we’re glad they’re looking into it,” White House press secretary Sarah ­Huckabee Sanders said.

Sen. John Kennedy said on Fox News, “In Louisiana, we call that bias, we don’t call that objective.”

House Oversight and Government Reform Committee Chairman Trey Gowdy of South Carolina said in a statement that the report shows “an alarming and destructive level of animus displayed by top officials at the FBI.”

“Peter Strzok’s manifest bias trending toward animus casts a pall on this investigation . . . His bias impacted his decision-making and he assigned to himself the role of stopping the Trump campaign or ending a Trump presidency,” Gowdy said. “This is not the FBI I know.”

But Strzok’s lawyer, Aitan Goelman, defended his client’s work at the FBI.

“After a yearlong investigation that included a review of millions of communications and interviews of scores of witnesses, the IG concluded that there is no evidence that the political views of Special Agent Strzok and others in the FBI impacted the handling of the Clinton e-mail investigation,” Goelman said in a statement to Fox News.

“As the report notes, Special Agent Strzok, in particular, was consistently thorough and aggressive, sometimes to the point that put him at odds with senior officials at the Department of Justice.”