All, I recommend you familiarize yourself with relevant state laws regarding your protections when assisting folks that are in immediate danger, e.g.: https://oregon.public.law/statutes/ors_161.200 I'm not a lawyer. So, if you have counsel on retainer and can stomach the bill, get clarity there first. But know that many states have such protections on the books. The veil of immunity for DHS agents may soon be pierced…
I'll tell you this much, most judges will regard a circumstance for you to exert force against a peace officer - seeming or actual - as an extralegal action, and will very rarely affirm it as a protected action from the books. And even if you beat such a case, it ruins your life in the process. Their qualified immunity will remain longer than you can remain solvent.