If this friend of yours betray your so called group of good
friends and join the bad group, will u risk your life to fight him
and knock him into senses even if u have to break his arms and
legs?
U can only talk to your friend.
If your friend still stick on the bad group (as you said), then
you better leave your friend and get away from him/her.
Afterall, friend is friend only. Just like colleague is
colleague only.
What matter most is your family, siblings and parents.