WATCH: President Donald Trump Criticizes Appeals Judges in National Sheriffs’ Association Speech

In a speech to the National Sheriffs’ Association on Wednesday, Donald Trump criticized the appeals judges currently involved in the travel ban court case.

Trump opened his speech by reading from 8 U.S. Code § 1182, the section of the U.S. Code which concerns the president’s authority to restrict the entry of aliens into the country, using this to argue that he is perfectly within his right to suspend immigration from seven Muslim-majority countries.

“If these judges wanted to, in my opinion, help the court in terms of respect for the court, they’d do what they should be doing,” Trump said. “I mean, it’s so sad. They should be, you know, when you read something so simply and so beautifully written and so perfectly written…and then you have lawyers, and I watched last night in amazement and I heard things that I couldn’t believe, things that really had nothing to do with what I just read.”

Trump went on to say that he doesn’t want to call the court biased, but he said that the courts have become “so political.”

The president added that he considered giving a month or a week’s notice before implementing the order but that he was told that “then you’re going to have a whole pile of people, perhaps, with very evil intentions, coming in before the restrictions.”

Trump also said that any high school student could understand that his executive order is legal.

“And I was a good student,” Trump said. “I understand things. I comprehend things very well, better than I think almost everybody. And I have to tell you, I listened to a bunch of stuff last night on television that was disgraceful.”

Finally, the president said that the United States is at risk because the travel ban was suspended. After concluding with this section about the court case, he went into prepared remarks.