It may be in bad taste but it is not an enforceable law as there are no penalties attached.
Ah... it must be part of the statutes governing immigration.