They are enablers. They may as well be encouraging a drug addiction. They need to be removed from the picture when possible.
Many of these "not-so-well-meaning" friends give advice in order to steer your life. They get a small ego boost from doing it. Its why some friends are always giving bad advice. So they may "enable" you to do some things that in your normal mind, you know you shouldn't be doing.