I understand such behavior as manifestation of explorative model. I recall similar things in my life. I was a child, and due to some favorable events I realized that many human habits are strange, so I didn't take them automatically as natural.
Thus when I saw people behaving stupid, I often mocked, mimicing their behavior. Sometimes it worked: they realized they look stupid, and became sober and natural.
But gradually I got a bad habit myself: seeing strange stupid behavior, I started to repeat it. Often it helped to understand something better: I realized both how it appears to onlookers, and how it feels from inside.
To a degree, I learned what it leads to and where it comes from.
But sometimes I wore such mask (or we can call it a role) for a long time. I just had not enough understanding to get rid of it. But eventually, due to external help and my own investigation, the causes and effects of such role revealed, and I liberated from it.
Maybe that's your case too: you got a habit and though you realize it's stupid, your realization is not enough to let it go.
Then probably you need to explore meanings of such behavior - its causes and effects. Then you will know the mechanism, the lesson will be learned, and the explorative model will be dropped.
From then on, you will be able to help people with the knowledge gained in that exploration.
Some advice right now: don't judge too much. You see, "it's stupid", but there are causes for such behavior. You can use it for learning, to gain some important insights which will advance you in the practice of wisdom.
So realize that even if something looks stupid, there can be good reasons. If you explore and absorb such knowledge, you could be free from judgments, you could look beyond the surface, seeing not just appearances but deep causes in human behavior.
To me, the ability to see causes, the experience in their observation, helped in the practice of insight immensely. Now when others ask for advice, I usually can see very well how to help them. Isn't it worth having done those slightly stupid things in the past?
Besides, it's not necessary to continue such behavior. As long as we understand its reasonable role in our life, we can concentrate on exploration of causes and results, e.g. observing movements in our mind but not manifesting them automatically. And even if we would manifest stupid behavior sometimes, then it might happen that, from the point of view of unlimited mind, doing this stupid thing was actually wise.
Happy exploration!