How do I avoid being friends with the wrong people?

During my freshmen year I could seem to find the right people to hang around with. They either smoked, got into trouble/fights, and/or constant drama. I want to avoid this since I spent all of my freshmen year being involved with drama, and fights with ex-friends. For an example this girl who I considered my friend was talking shit about my other friends and I didn’t like that so I told her that I didn’t like that she was talking down to my friends and I told her respectfully. She got made and began to argue with me and well we dont talk anymore. I’m a sophomore now and I want to avoid this.. it too fucking exhausting.

How do I avoid being friends with the wrong people?
Post Opinion