In an interview with liberal media outlet The Huffington Post, House Speaker Paul Ryan revealed he would take if-elected-President Donald Trump to court if he tried to implement a temporary Muslim ban or some of his other controversial proposals unilaterally.

“I would sue any president that exceeds his or her powers,” Ryan said in a back-and-forth about Trump’s claims that he could implement a Muslim ban or build a Mexican border wall without congressional approval. “That’s a legal question that there’s a good debate about,” he said about Trump actually being able to impose a ban, citing the 1952 Immigration and Nationality Act.

“I am going to keep being who I am, I am going to keep speaking out on things where I think it’s needed, where our principles need to be defended, and I am going to keep doing that, I hope it’s not necessary,” Ryan said. “But the last thing I want to see is a another Democrat in the White House.”

In the interview, Ryan said his endorsement of real estate mogul did not give him jurisdiction or leniency to do anything at his whim, and that he was still trying to achieve “real unity” between the presumptive nominee and his party.