Not only where the chief magistrate enters into measures, in themselves, extremely pernicious to the public, but even when he would encroach on the other parts of the constitution, and extend his power beyond the legal bounds, it is allowable to resist and dethrone him;