At what point does potential personal harm trump personal freedom, if ever?

This was a hypothetical about what I think *should *happen, not about how things currently are in the US. Heroin users shouldn’t be criminals.