what if they killed someone...
Then you listen to them. And tell them, "You're going to end up in jail, one way or another. But I will always be here to help you in anyway I can."
Just because they are your friend, doesn't mean they don't have to pay the price of their choices. All you do is provide them support... and support doesn't always mean agreeing.