Proverbs 5:24

“I was almost in all evil in the midst of the congregation and assembly.”
‭‭Proverbs‬ ‭5:14‬ ‭KJV‬‬

Simply “going” to church is NOT going to be enough to keep you from making evil choices. While it is a good place to start, it is ONLY a starting point. You must die daily to sin and self, and determine (again if necessary) to live in obedience to the Word of God.