I get it, but these substances aren’t “legal” in the same sense meant in the quote. Amphetamines, in the US at least, is a Schedule II drug. Meaning it needs to be prescribed.
If you’re using it in the same way you would cocaine, you’re abusing it. Which is still very much illegal.