Yeah this is wrong at least when it comes to the military UCMJ allows you to disregard an unlawful order. Nuremberg confirmed that i was just following orders doesn’t fly at least in the military. Immunity doesn’t make it legal it just makes the person uncountable and shows how broken the system is.