Sin

Is the breaking of the law.

Just like human laws made up by many earthly governments (originally based on these same 10 Commandments, by the way), ignorance of the law is never an excuse, and you will be held accountable. ALL sin is against God, as He is the standard of perfection. God hates sin and it cannot come into His presence. Jesus clarified that sin comes from the heart.