My best friend is a criminal

Hey I’m 18M and I want to join the Marines. I had a friend from middle school who we told each other we were going to join the Marines after we graduated high school, but he’s turned into a genuinely horrible person. I don’t want to divulge too much details, but he’s got an extensive criminal record, has drinking/smoking/drug problems, illegally owns firearms, and hanging out with him is literally babysitting him. My parents distrust him and don’t like it when I hang out with him. I feel kind of sorry for him but I decided to cut him off because he is too far gone and I don’t want to get dragged down with him and have this ruin my chances of getting into the Marines. I just blocked all his numbers and social medias but I don’t know if that’s going to be the end of it. It’s a shame because I’ve stayed with him all these years because he was the first person to ever call me their best friend, and that stuck with me. I feel like Luke from Purple Hearts right now lmao. Did any of you guys have bum friends that you had to cut off? If so, how well did it go, and did you ever see them again during or after your time in the Marines? Is being associated with guys like these going to affect my chances of making it into the Marine Corps? I’m open for advice on what to do.