I've never heard of such a law, is it common? In which jurisdiction?
https://www.police.pref.ehime.jp/foreigner/otoshimono/2.pdf