Strictly speaking these all do something similar-ish at face value but actually quite different in terms of mechanism and target. I think the unpopularity of a lot of these licensing structures is also down to lack of legal verification in a lot of cases.
The illegality possibility does warrant careful consideration, but I suspect in many cases regimes which would oppose this kind of license would be making the use and enforcement of software fairly selective in any case. If it is made illegal, it’s made illegal by the respective government, not the software author or license writer.
A question is then raised as to what degree the implied open source requirement that open source should be leveraged by e.g. Nazis actually benefits developers and users. Or whether it is in effect a kind of appeasement as no doubt use which contradicts those values (and hence promotes freedom) is illegal already. Those uses which are orthogonal to that aim may be selectively targeted for arbitrary reasons such as the identity of the user.
Some LLMs have specific jailbreaks which including in the document may cause them to act strangely in a way that is specific to the LLM. But it’s unlikely to be robust over time as they get patched/changed/etc.