What are the most effective ways to prevent the opioid epidemic?

What are the most effective ways to prevent the opioid epidemic?