President Donald Trump's Justice Department is not happy with Wisconsin Judge Hannah Dugan's legal defense in their criminal case against her.

According to The New York Times, prosecutors rejected her claim that she has immunity for acts carried out in her official capacity — an argument for which Dugan cited the Supreme Court's ruling in Trump v. United States, where Trump himself was granted some degree of immunity for official acts in a challenge to the now-defunct federal charges of election conspiracy against him.

What was good for Trump is not good for Dugan, the prosecutors argued.

“Dugan asks this court for an unprecedented dismissal on grounds of judicial immunity, ignoring well-established law that has long permitted judges to be prosecuted for crimes they commit,” stated the DOJ filing.

“Combined with Dugan’s attempt to define ‘judicial acts’ expansively, such a ruling would give state court judges carte blanche to interfere with valid law enforcement actions by federal agents in public hallways of a courthouse, and perhaps even beyond,” the filing continued.

Dugan was charged earlier this year after an incident at her courthouse in which Eduardo Flores-Ruiz, a Mexican national charged with misdemeanor battery, tried to flee from federal officials there to arrest him for immigration offenses. Prosecutors accuse Dugan of abetting that attempted escape by directing him through a jury door.

Some legal experts who have reviewed the case believe the government's accusation is meritless, with one official knowledgeable of the building pointing out that the "jury door" Dugan ordered Flores-Ruiz through in fact led to a hallway with a half a dozen federal agents who could have arrested him before he tried to leave the premises.