Make other aspects expensive. Drug crimes and related crimes get huge penalties. No medical treatment if you have certain drugs in your system. Make it so the cost of using fentanyl is so high that there is some deterrence.
Have you thought this through? This is beyond evil. Same energy as "no organ transplant if you didn't get the vaccine"