In general most skillful actions require a license to practice professionally. See: Licenses
Typical offenses and their level for ignoring laws purposes:
Note that if you break higher laws in the line of duty you might still not get any censure if it deemed necessary for greater good. Ie: even without any legal immunity you can speed to catch a criminal when in hot pursuit.
Also in all cases likely someone has to pay for the damages. As default it is the perpetrator, but if deemed justified then the organization granting the legal immunity will stand for it.