As a society, we try hard to prevent serious injury and death even to people who are very incautious. Drug use is illegal. It is a question of having the punishment fit the crime. Under state laws, we punish drug possession by probation, by commitment to treatment, and by prison sentences from a few months to several years. Not one of our 50 states executes people for the crime of drug possession.
Drug use is like slavery.
Consider the difference that access to sterile needles makes. Uninfected people who stop using drugs have their whole lives before them. HIV-infected people who stop using drugs almost surely face serious, painful illnesses and premature death. The spread of injection-related HIV is caused by publicly supported and defended policies. When a person is suffering from an overdose, we rush that person to a hospital and provide the best medical care we can.