President Trump said Thursday that former Secretary fo State John Kerry should prosecuted under the Logan Act for speaking with Iranian officials and criticizing Trump's policy in Iran.

Trump told reporters at the White House that he would not rule out the possibility of military action in Iran amid escalating tensions before laying into Kerry for his involvement.

"What I’d like to see with Iran, I’d like to see them call me," Trump said. "John Kerry speaks to them a lot, and John Kerry tells them not to call. That’s a violation of the Logan Act, and frankly he should be prosecuted on that.

Trump added that his "people don't want to do anything," and that "only the Democrats do that kind of stuff."

The Logan Act bans private citizens from negotiating with foreign governments without permission from the U.S. Violating the obscure law is a felony, but only two people have been charged with doing so.