The 10 Commandments are meant for those who don’t know God, couldn’t care less about God, or even deny that there there is a God. The Law shows them the error (the sin) of their ways, whether they agree with you or not, whether they agree with God or not.
1 Timothy 1:8-10: “We know that the law is good if one uses it properly. We also know that the law is made not for the righteous but for lawbeakers and rebels, the ungodly and sinful, the unholy and irreligious: for those that kill their fathers or mothers, for murderers, for adulterers and perverts, for slave traders and liars and perjurers…”