How do you separate him from his criminal best friend?

You should make him to inderstand that a criminal is not trustful and not a friend material. He will betray him the first time when its required to save himself. The other thing is there is a risk that the police will accuse him because he knows that guy. Be smart and patient. Make little steps and be calm.