I believe it was right, because there is a higher authority than a king or president. If that king does not fulfill his duty of justly ruling the people, then the people can hold him to the higher authority (God), and if he still refuses to change his ways, then the people have the right to throw off...