Please help

Guys please help me idk what to do, I need advice, and please don’t say basic junk I need actual advice like what would you do in my situation

• so my boyfriend and I have been together for almost a year, and during that time I met my best friend, so my best friend just so happens to be my boyfriends ex, and my boyfriends mom does not like her and thinks shes a bad person, so since she’s a bad person and I hang out with her she thinks I’m a bad person too, so she said either I stop hanging out with her or he has to leave me. IDK WHAT TO DO I love him with everything in me and I can’t lose him, BUT YALL THATS MY BESTFRIEND idk idk idk HELP?!?!