Two days before Gustavo Garcia's "reign of terror" through Tulare County, he was arrested by Tulare County sheriff's deputies for being under the influence of a controlled substance.

Deputies held Garcia at the Tulare County jail for 10 hours before releasing him back to the public, according to Tulare County Sheriff Mike Boudreaux.

Less than 48 hours later, Garcia would go on a rampage through Tulare County that left three dead, including Garcia, and at least seven hospitalized. He's accused of racking up a dozen crimes in 24 hours.

While he urged Walmart customers to buy bullets for him, he ultimately took matters into his own hands 30 minutes before the deadly crime spree, according to Tulare police. Officers said Garcia stole 300 9mm bullets from Walmart before gunning down two and shooting several others.

Before Garcia's release, ICE officials alerted deputies that Garcia was a criminal with a violent past who had been deported once in 2004 and again in 2014. Garcia served 27 months in a federal prison between deportations for illegally reentering the country.

ICE agents issued an immigration hold against Garcia on Friday, following his arrest. The hold was not honored, however, and Garcia was released later that day, unbeknownst to ICE.

"This is an unfortunate and extremely tragic example of how public safety is impacted with laws or policies limiting local law enforcement agencies’ ability to cooperate with ICE," the federal agency said in a statement.

Boudreaux agreed with ICE agents.

"The Tulare County Sheriff’s Office is equally as frustrated with this situation," Boudreaux said. "Because of California law, detainers can no longer be recognized by local law enforcement."

The law that Boudreaux and ICE refer to is SB 54, otherwise known as the "Sanctuary State Bill."

Under SB 54, local law enforcement cannot communicate with ICE or other immigration officials without a warrant signed by a federal judge, except in the case of specific felonies.

"Before SB 54, Gustavo Garcia would have been turned over to ICE officials. That’s how we’ve always done it, day in and day out," Boudreaux said. "After SB 54, we no longer have the power to do that. Under the new state law, we must have a 'federally signed warrant' in order to do that. We didn’t honor the detainer because state law doesn’t allow us to.

A federal judge hadn't signed Garcia's hold. ICE has issued 200 detainers in Tulare County in the past year, only 50 have been honored, Boudreaux said.

"This is an eye-opener," he said, speaking to state officials.

ICE agents revealed that Garcia committed an armed robbery in 2003, for which he served two years in federal prison. An immigration judge initially ordered him deported in 2004. He served another 27 months in prison for illegally reentering the country, before being ordered deported again in 2014.

It's unclear how long he'd been in the United States when he was arrested a second time by ICE agents.

Garcia's armed robbery, a felony that would have allowed deputies to hold Garcia and honor ICE's detainer, happened 15 years and 11 months ago — 11 months after the new statue of limitations imposed by Sb 54.

“Our hands are tied,” Boudreaux said. “I hope local officials are paying attention.”

The Tulare County Board of Supervisors voted to adopt a resolution opposing California's "Sanctuary State" law in May of this year. Technically, it means nothing.

"It is not for the people who are here working every day, working on the fields. This is not what this is all about," District 5 Supervisor Mike Ennis said in a presentation at the time. "It's about the people that come here because we are sanctuary county and prey on these people. They are the people we don't want."

Boudreaux repeated that he "was not against DACA or Dreamers" several times throughout the press conference conducted from his office, noting that two of his deputies are Dreamers themselves.

One of Garcia's victims was an undocumented farm worker, shot in the chest as he picked fruit off a tree from a ladder near Exeter.

"We had a person who was an immigrant in the field, a victim of Garcia. We didn't enforce immigration (on him)," Boudreaux said. "We investigated the crime, made sure he received the medical care he direly needed, and held his tearful family's hand through it all."