On one level you are right: this will probably lead to some people harming themselves with medication obtained without proper medical advice.
On another level: we should not protect people from themselves. If someone is stupid enough to do something harmfull to him/herself we should let them. Natural selection will do the rest.