Sec. 7. Oath.
Before entering upon the duties of an office, a person elected or appointed to the office shall take and subscribe the following oath:
"I, _______________, do solemnly swear (or affirm) that I will support and maintain the Constitution and laws of the United States, and the Constitution and laws of North Carolina not inconsistent therewith, and that I will faithfully discharge the duties of my office as _______________, so help me God."
[1] https://www.ncleg.net/legislation/constitution/article6.html
It's turtles all the way down: the legislature's laws are reviewed by judges or ignored by the executive; judges & members of the executive branch may be impeached by the legislature; ultimately the voters decide what they're willing to let their government get away with.