I have a confession to make.
When I was little, I used to have this stim called rocking. I did it because it brought me pleasure. Unfortunately, it brought my parents pain, because I didn't listen to their orders to do it only "in your room, by yourself." I got punished for doing it in public sometimes.
One day, my mother explained to me why it brought me so much pleasure and her so much pain: it was the type of pleasure, thoroughly inappropriate for a child, that was the problem. When she said this, I felt so guilty over it. I'm a practicing Catholic and have been since I was born, and I knew that this type of stimming was against the rules. I tried to kick the habit immediately.
I was not 100% successful; I had a few relapses. But eventually, I was able to kick the habit for good, and got forgiven for breaking the rules. I've been (figuratively) sober for a little over two years now.
I pass no judgment on stimming. I just shared my experience of illicit stimming, to prove that if you really want to, you can kick any habit.