When someone does it to me, I take it as they disagree with something I’m doing, but believe it’s my right to make my own mistakes. Then they don’t know how to put away their own thoughts to the side once they decide not to press their opinion further.
In those terms it’s easier for me to consider what they have to say, see if I agree, and if not, just chalk it up to a bit of social awkwardness rather than outright malice. It’s usually people who care enough to worry about you, but just disagree in some way. Not enough people in the world care, so I try to look at the good there.
Looking at it that way also (hopefully) keeps me from doing it to other people. Say what you need to say, discuss if needed, and move on.