I was very religious when younger, and I felt very guilty after each time I masturbated. My religiosity couldn't stop me from doing it, but it succeeded in making me feel guilty. Nature is more powerful than religion. Think about that. Are you still religious or go to the church and confess?