Although I agree with what you're saying, the philosophy isn't so clear cut; even some strands of libertarian thought recognize harms against oneself, but the "oneself" is in the future, and could be considered a separate person. By an extension of the harm principle, it could be permissible to illegalize things which cause harm against people in future - the sale of cigarettes, for example.