useful I dont mean to big bro you here but this is super deeply enshrined into the US legal code.
qualified immunity has its BASIS in the idea that as long as a cop or any LEO THINKS! they are doing the right thing then they are protected from ANY AND ALL PROSECUTION.
Hell the supreme court went as far as to rule the police have no obligation to intervene to stop a crime happening if they so desire to not help, this landmark decsion came from when 2 NYCPD cops watched a subway full of people get stabbed while they stayed safe in the other car watching it all and only moved in when a ex military guy managed to subdue to attacker while being repeatedly stabbed.
Ver archivo adjunto 8817353
Source
they can do whatever they want, when they want and face absolutely 0 responsibility as they work for the only system we have designed to stop people like that