A president who is willing to do those things, and has a military willing to carry those orders out, isn't likely to be stopped by the court telling them it's illegal.
Is someone more or less likely to perform such an act if there's a possibility of legal consequences? If not, then we don't really need courts at all, do we?