A Massachusetts sheriff who has called for the arrest of public officials who support sanctuary cities Wednesday slammed a state lawmaker who posted a Facebook warning about a rumored federal raid.

"I can’t think of anything more irresponsible and more underhanded and undermining to law enforcement and to the people of that community than what this state representative did," Bristol County Sheriff Thomas Hodgson told Fox News' "Your World With Neil Cavuto." "She ought to be ashamed of herself [and] the state legislature ought to be looking at her for, at a minimum ethics violations."

FACEBOOK POST WARNING ILLEGAL IMMIGRANTS OF ICE RAID DELETED, BUT DEFENDED

The lawmaker, Democratic State Rep. Michelle DuBois, later deleted the post referencing a rumored ICE raid in Brockton, Mass. Her message read, "If you are undocumented, don’t go out on the street. If there is a knock on the door of your house and you don’t know who it is, don’t open the door. I ask you to be careful."

"She doesn't have any idea [of] the people she's warning or what their backgrounds are," Hodgson told host Neil Cavuto. "They could be gang members involved in transnational gangs, the sex trafficking that’s going on – and our officers ... sometimes need the element of surprise to make sure that somebody’s not building an arsenal waiting for us or having some heads-up where one of our officers is going to get seriously injured or killed."

Hodgson said that President Trump has focused on the deportation of "criminal illegal aliens and wants us focusing on them."

"These are people that we have information about, that we're looking for and [are] a danger to our society," the sheriff said. "This is exactly what you would hope every elected official would be working with and helping our federal and state and local partners do."