Little children, let no one lead you astray. He who does righteousness is righteous, even as he is righteous.
So again, don't deceive yourself. If you are practicing sin, living in sin, you are not of God; you are a part of that rebellion against God, led by Satan.