Something I’ve learned recently is that we can’t and should not try to change people. We should accept them exactly as they are.
“Don’t be so negative/positive.”
“Don’t eat that!”
“You should spend more time meditating, exercising, getting into nature.”
“Socialize! It’s good for you.”
Accept that person as they are if you want to be around them. If you can’t, or just don’t want to, that’s fine too. Find someone else to hang out with.
Other side? If someone doesn’t want to be around you, accept it and move on. They aren’t bad people, you just don’t fit together. They are another piece of the puzzle that fit somewhere else in the same picture. We are all connected somehow and equally important just the way we are.