Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

Supreme Court Justice Ruth Bader Ginsburg said Thursday she regrets recent "ill-advised" criticisms of presumptive Republican nominee Donald Trump.

U.S. Supreme Court Justice Ruth Bader Ginsburg | Presumptive Republican presidential nominee Donald Trump AP | Reuters

“On reflection, my recent remarks in response to press inquiries were ill-advised and I regret making them," Ginsburg said in a statement issued by the court. "Judges should avoid commenting on a candidate for public office. In the future I will be more circumspect.”

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Ginsburg slammed Trump three times in the last week, referring to him as a "faker" who "really has an ego" and "has no consistency about him." She joked she might move to New Zealand if he were elected president.

"I can't imagine what this place would be — I can't imagine what the country would be — with Donald Trump as our president," Ginsburg, 83, told the New York Times in an interview published online on Sunday.

In response, Trump called Ginsburg's remarks "dumb," and tweeted: "Her mind is shot — resign!"

Justice Ginsburg of the U.S. Supreme Court has embarrassed all by making very dumb political statements about me. Her mind is shot - resign! — Donald J. Trump (@realDonaldTrump) July 13, 2016

Ginsburg was appointed to the Supreme Court in 1993 by Trump's opponent's husband, President Bill Clinton.

She has been criticized by some legal commentators and legislators for her remarks.

RELATED: Legal Experts Raise Eyebrows at Ginsburg's Trump Comments

In an editorial published Wednesday, the New York Times said Ginsburg "needs to drop the political punditry and the name-calling."

Republican lawmakers weighed in, too. Majority Leader Mitch McConnell of Kentucky called Ginsburg's remarks "totally inappropriate," while Senate Judiciary Committee Chairman Chuck Grassley said she "oughta stay out of it."