Stopping or interfering with officers performing their duty must be illegal.
That is what I thought, too. Of course, it would never be prosecuted by state officials because the illegals are a protected class in California. But the feds, if they cared to, could make a case.