Ex boyfriend's best friend

Maddie
So I have my ex boyfriend who is overly obsessive over me and will not move on and it is the most irritating thing because his best friend and I are trying to get together but my ex keeps like warning him and being all protective and making him feel guilty... What to do????