If someone tries to influence you into doing things that are wrong/bad knowingly, obviously that person is not the right kind of friend you want in your life. Be with those who will influence you to do right/good things. It’s good for them and for you instead of being with someone who influence you to do bad. It’s bad for them and for you. If you care about that friend, try to help him or her make the right choice.