Splitting hairs, but technically being a user or addict isn’t illegal, it’s possession or possession with intent to traffic, which are the crimes. Might vary by region.
In any case, not justification for murder
EDIT: pardon me, my reply keeps going to the wrong comment.