In The 37 Practices of a Bodhisattva, verse 5 says:
With some friends, the three poisons keep growing,
Study, reflection, and meditation weaken,
And loving kindness and compassion fall away.
Give up bad friends — this is the practice of a bodhisattva.
The three poisons are greed, hatred and delusion.
Anything that allows the three poisons to keep growing is something we might consider giving up.
Take notice of any of the three poisons, if they’re growing within. Take notice of what it is that allows these poisons to grow, you might consider giving up those friends and those types of things. For your peace of mind, and for the sake of those whom you love.