There are numerous ways you can prevent it. The first that comes to mind is consistently educating the community on the risks and science behind it, especially adolescents and children. Secondly, I think that parents could store prescription drugs safely and away from others to prevent it being abused by teens. And finally, I think doctors could crack down on prescribers who hand out large quantities of narcotics.
Hope that could help!