All the "ill-trained" episodes would be avoided if local police cooperated.
For example, hand off criminals to ICE at the jail. Don't make ICE go out into the city to track them down. There is a reason all the "ill-trained" episodes occur in sanctuary/blue cities.
Evil preaches tolerance until it is dominant, then it tries to silence good.