Former acting director of Immigration and Customs Enforcement (ICE), Tom Homan, said Wednesday on Fox & Friends that a proposed bill that would ban agents from arresting illegal immigrants in courthouses would put them at a dangerous risk.

The proposal comes after an illegal immigrant was apprehended inside a courtroom in Sacramento Superior Court, according to The Sacramento Bee.

The bill was approved last week by the California Legislature, according to The Fresno Bee, and would prevent civil arrests in state courthouses, including charges related to immigration.

Homan said that he sees no issue with the practice and that it has been happening for years.

'You Really Should Resign': Perino Calls Out WH Official Who Authored NYT Op-Ed Against Trump

"That's exactly where they should be arresting [someone]," he said. "We know they don't have weapons because they went through security and a metal detector."

The Bee reported that the arrest of the immigrant, Yovanny Ontiveros-Cebreros, occurred as his arraignment was ending.

It also reported that Ontiveros-Cebreros's attorney, Charles Pacheco, said, “I'll never walk a client of mine into a trap again."

ICE agents had a warrant for Ontiveros-Cebreros's arrest as well.

"This is just a further deterioration of the very foundation of what this country is founded upon," Homan said.

Homan added that law enforcement officers should be allowed the same protection as judges and members of Congress in courthouses.

"They're putting ICE officers at risk again," he said. "Why not arrest a criminal in the safety and security of a jail or courthouse where they don't have weapons?"

California Gov. Jerry Brown (D) has until the end of the month to act on the bill.

Watch the segment above.

Hannity Blasts Nike, Kaepernick: Soldiers, Officers, Firefighters Are the Ones Who 'Sacrificed Everything'

'Crazy Never Takes a Vacation' in DC: Sen. Kennedy Blasts Dems for 'Orchestrated' Outbursts at Kavanaugh Hearing

Huckabee on Woodward's Book: Only a 'Gutless Coward' Uses Anonymous Sources