The change in view is deviation from the will of God or the laws of the king. The phrase "both of them" ( Proverbs 24:22) refers to God and the king. The structure is again chiastic to emphasize the central thought of the proverb. People should fear God and the government because they both punish rebels (cf. Romans 13:1-7; 1 Peter 2:17). [source][source][source]
This concludes the Song of Solomon -called30 sayings of the wise, as is clear from Proverbs 24:23 a. [source][source][source]