Even if your perception is true, (I don't believe it is), God cannot sin even if he violates the Ten Commandments.
Think about what you just said.
I think there is a concept you fail to grasp. That concept is that God's law is not subjective, but objective.
Let me clarify what I mean.
If God says, You shalt not kill, because He thinks it is wrong for you to kill, that is a subjective law. It is subjective in that it is based upon what God THINKS you should do, or not do.
But, that isn't what God says. God's law is objective because He is describing Himself.
When we say a house has four walls, that is an objective statement. We are describing established facts based upon an what is literally there. One can look and examine the house, and say, Yes, it has four walls.
When God said,
1:16 Because it is written, Be ye holy; for I am holy. 1 Peter
God was telling us objectively to be "holy", and as a example, or a template, use Him as our standard for what holiness is.
Hence, when God said, Thou shalt not kill; that is based upon His description of Himself. God never unjustly kills; for to do so would mean that He Himself has been disqualified from being "holy" from an objective position.
Hence, God cannot violate any of the 10 Commandments and still remain the objective standard of holiness.