Immigrations and Customs Enforcement (ICE) chief Thomas Homan on Wednesday criticized the mayor of Oakland, Calif., for warning residents of impending immigrations raids, saying she prevented the agency from locating 800 individuals deemed public safety threats.

“She gave them warning, and there’s 800 that we were unable to locate because of that warning, so that community is a lot less safe than it would have been,” Homan said on “Fox & Friends.” 

“I watched her statement where she says her priority is the safety of her community. Well what she did had the exact opposite effect,” he added.

Oakland Mayor Libby Schaaf (D) warned city residents Saturday night of pending immigration raids in the Bay Area, saying sweeps could occur in the next 24 hours.

Homan said Wednesday that giving advance warning to residents about possible law enforcement operations makes the job more dangerous. He also likened Schaaf’s actions to a “gang lookout yelling ‘police’” when a police vehicle drives through a neighborhood, the Hill reports.