All of the things you referred to can be avoided by enacting laws which, as far as possible, protect the common good. The easiest way to do it is sin taxes. People may like smoking, and gambling, and emitting carbon, and we should let them do it, subject to punitive taxes.
Only in the case or extreme legislative failure would this come unstuck - and we're not there yet. For example, regarding the covid vaccine, two simple solutions exist: 1) make working in most jobs contingent on being jabbed (that's what we did in Australia and it worked wonders); 2) withdraw healthcare from those who refuse to be jabbed. Either way, it becomes a self-limiting problem.
In most cases, there is a way to deal with stupid behaviour which internalises most of the problems. The way we treat smoking and playing the lottery is one such example. There are also positive steps that can be taken, i.e. carrots instead of sticks.