Maturity is realizing a few things:
1. Not everyone is going to stick around. Passing clouds is a term for a reason.
2. You can't always control how people see you. Sometimes, for some people, You are gonna be a bad guy. Let it be.
3. Sometimes distance with people is a very good thing. Not everyone is going to appreciate your presence too close.
4. Your efforts sometimes can be wasted on the wrong person. How can you know they are the "wrong person"? Simple, It's almost always one sided.
Harsh reality, not everyone is you, not everyone is going to cross the same lines as you do for them. Friends, family, relationship. Everything has limits. Know them, keep them in mind.