 actions that he takes. For instance, if in his official capacity he orders the Navy SEAL team to assassinate a political rival, then he could be immune. If he says in an official capacity that the military should be used to have a coup to hold on to power, then that would be something that would prevent him from having any criminal liability.