House Speaker Nancy Pelosi's reported remarks about wanting to see President Trump imprisoned were "over the line," according to a former Obama administration economic adviser.

Former Obama White House economic adviser Austan Goolsbee made the comments Friday in an appearance on "Hannity."

Rep. Pelosi, D-Calif., reportedly made her remarks while defending her stance against impeaching the president in an evening meeting earlier this week with House Judiciary Chairman Jerrold Nadler and other top Democrats, according to Politico.

NANCY PELOSI TOLD DEMS SHE WANTS TO SEE TRUMP 'IN PRISON': REPORT

“I don’t want to see him impeached, I want to see him in prison,” she said, according to multiple Democratic sources familiar with the meeting.

Host Dan Bongino asked Goolsbee if he took issue with Pelosi reportedly making those comments.

"I have somewhat of a problem with that, and I'm glad that wasn't a public statement," Goolsbee said. "I wasn't there. I can't verify she said that. If she did say that, I think that's over the line."

However, Goolsbee added he believed Trump also committed a similar mistake multiple times during his presidency.

CLICK TO GET THE FOX NEWS APP

"It's a line that the president of the United States, to be fair, is quite familiar with stepping over, too. Calling for people to be investigated for treason, pronouncing them guilty before there is any investigation," he said.

"But, I certainly don't think that it's appropriate to either say you want the president in jail or to say that you think the president should be impeached when there has been no investigation. We haven't had any fact-finding. I think that is stepping over the line."

Fox News' Brie Stimson contributed to this report.