Presumptive Republican presidential nominee Donald Trump ripped Supreme Court Justice Ruth Bader Ginsburg in a Twitter message late Tuesday.

"Justice Ginsburg of the U.S. Supreme Court has embarrassed all by making very dumb political statements about me," Trump wrote on his Twitter account. “Her mind is shot — resign."

Trump has been on the defensive after Ginsburg told the Associated Press last week that she felt he was unqualified for the position. She said in an interview that she didn't want to think about the possibility that Trump would be president and predicted that Democrat Hillary Clinton would win.

Ginsburg also joked that she would move to New Zealand if Trump were elected.

Trump told the New York Times earlier Tuesday that her comments were “highly inappropriate” and a “disgrace to the court.”

“It’s highly inappropriate that a United States Supreme Court judge gets involved in a political campaign, frankly … I think she should apologize to the court. I would hope that she would get off the court as soon as possible,” he added.

Senate Majority Leader Mitch McConnell said that it was "totally inappropriate" for Ginsburg to criticize Trump.

McConnell said that members of the Supreme Court shouldn't weigh in on American elections.

"It raises a level of skepticism that the American people have from time to time about just how objective the Supreme Court is, whether they're over there to call the balls and strikes, or weigh in on one side or another," he said.

The Associated Press contributed to this report.