like insulin? should a diabetic skip the insulin? In poor countries I wouldn't be surprised if the majority of HIV infections are not as preventable as you're imagining.
You can moralize, but even if only 10% of HIV infections are unavoidable, you're not contributing to solving the actual problem. (And by unavoidable I mean, unavoidable without investing in more needles, better sanitation, or prophylactics that the people "responsible" cannot afford.)
you don't have to care about the drug users at all. even if you treat them as pests rather than humans, we frequently vaccinate pests for public health measures. pathogens will spill over to populations you do care about, they'll create a drain on the healthcare system, they'll harbor other opportunistic infections. it's not sanitary.
this is completely leaving aside that some drug addicts can and do turn their life around, and that HIV is a horrible illness nobody should have to deal with, even if it's "their fault."