What I want in this teaching is to help you to distinguish between what thoughts are from you, what thoughts are from God and what thoughts are from the devil.
We must distinguish between what is from God and what is not, for the enemy has even made you believe many of his thoughts and lies.
It might be that he sends thoughts that it is God who condemned you for a sin you did, but those condemning thoughts came from him. He is called the accuser, not the Holy Spirit. The Holy Spirit is our helper and comforter.
Remember too: Even if you can do evil things, you are not evil, and you are not the sin, but it is a power called sin who would like to use you to do its deeds.