In this analogy I think that a law against is mugging is analogous to a law against financial scams like dogecoin. Of course the existence of the law won't prevent anyone from getting scammed or mugged, but it may reduce the frequency with which people get scammed or mugged, and it may reduce the incentive to scam or mug by introducing the threat of punishment for scammers/muggers.