Story highlights Security experts say public officials should avoid comments against a specific judge

White House press secretary Sean Spicer was asked whether Trump regrets his criticism.

(CNN) Threats against more than one judge involved in legal challenges to President Donald Trump's executive order on immigration have prompted federal and local law enforcement agencies to temporarily increase security protection for some of them, according to law enforcement officials.

CNN did not learn how specific the threats were, but law enforcement agencies treated them seriously and out of an abundance of caution, the US Marshals Service and local police increased patrols and protective officers to provide security for some of the judges, the officials said.

A spokesperson from the US Marshals Service declined to comment directly on the threats but said that while "we do not discuss our specific security measures, we continuously review the security measures in place for all federal judges and take appropriate steps to provide additional protection when it is warranted."

The threats come as Trump continues his verbal criticisms of judges -- something that has drawn concern from former law enforcement officials and others who fear that public officials should not target a specific judge, and instead base their criticism more broadly on a court's ruling.

Security experts say that while Trump's comments were clearly not meant to put the judges' safety at risk, in general, public officials should avoid comments against a specific judge so as not to spur an unhappy litigant.

Read More