It's not different, and many countries have established laws against "drug tourism", "sex tourism", "abortion tourism", or other stuff punishable under their law that people would seek to do in other more permissive countries.
Those laws often include punishments for the enablers, so while Iran may not be able to punish you in your own country, beware of ever visiting Iran, or any other country whose laws you may be helping people to break... or getting doxxed for some "extreme law defending enthusiast" to pay you a visit (see cases like Charlie Hebdo).