Regardless of the legality, such a move would result in a massive public and media backlash.
A complete chimp out.
There would need to be incontrovertible evidence of a coup, treason, and/or humanity crimes… and how are you going to get that to the public?