While it’s true, the alternative isn’t very fulfilling. So don’t overthink it, it’s out of your control how people act or react toward you
This doesn’t mean go full simp, allow yourself to be controlled, manipulated or disrespected. Or be clingy, thirsty and dependent. Those are signs of other issues. Obviously you should maintain your boundaries. However people are missing out on deep and meaningful relationships out of fear of being hurt or abandoned
If it happens, it happens. You move on and grow stronger, just like with anything else