Previously untouchable public officials are on notice that federal prosecutors are watching how they handle immigration matters after a state judge was indicted this week for allegedly allowing a Dominican national to bolt out a basement door at a Newton courthouse.

That includes Suffolk District Attorney Rachael Rollins, who has instructed staffers to warn her if immigration agents are spotted in any county court, according to a policy memo she sent out last month.

“She should be thoughtful how she expresses her disagreement with the government,” attorney Michael Kendall, a former federal prosecutor, told the Herald. “What matters now is how the DA acts.”

Rollins’ memo, first reported by the Herald, states her office “will begin to factor into all charging and sentencing decisions the potential of immigration consequences.”

U.S. Attorney Andrew E. Lelling said Thursday when announcing the obstruction charges against Newton District Court Judge Shelley M. Richmond Joseph, 51, and former court officer Wesley MacGregor, 56, he was enforcing the law.

“From certain quarters I’ve heard the occasional gasp of dismay or outrage at the notion of holding a judge accountable for violating federal law. But if the law is not applied equally, it cannot credibly be applied to anyone,” Lelling said.

The arrest of the judge and ex-court officer made national headlines as the country remains divided over how to treat illegal immigrants — with President Trump pushing for completion of a wall on the southern border and threatening to dump migrants in sanctuary cities, including Boston, Cambridge and Somerville.

Rollins, who did not return multiple calls to the Herald for comment, is now especially vulnerable due to her policies of trying to assist migrants and saying her office will not prosecute 15 crimes.

“Hopefully,” said MassGOP Chairman Jim Lyons, “she’ll understand there’s a federal prosecutor in Massachusetts who cares about the rule of law.”

Kendall said he disagreed with Lelling’s move to indict a sitting judge, adding the case will just scare off more illegal immigrants from seeking help in the courts further exacerbating the immigration issue.

“It’s a fact of life immigrants are afraid to go to the courts for help,” Kendall said. “A lot of people who are victims of crime would rather be exploited.”

Attorney General Maura Healey also slammed Lelling for busting the judge, but not everyone agreed, according to comments on the AG’s Facebook post under her harsh statement.

“She broke Federal Law, the US Attorney’s office had every right to do what they did! The law is the law is the law. FOR EVERYONE!!!” one woman commented.

” I hope to see more of this,” said another.

“Break the law, get arrested. That’s how it works for the rest of us,” the AG was told.

Someone else did post a link to a GoFundMe site that is raising money for the judge’s defense fund, with nearly $13,000 raised as of last night with a goal of $750,000.