Do you suppose, O man—you who judge those who practice such things and yet do them yourself—that you will escape the judgment of God?
Romans 2:3 ESV

If you treat God spitefully by preaching obedience and practicing disobedience, how much more will God judge you than the unrepentant sinner?

Some people loudly condemn their own sins in others because they believe it will make them seem innocent or at least signal the right virtue to God and man so they might avoid judgment, but God doesn't care nearly so much about your words as he does about your actions.