I think it is illegal. The parent or guardian could expose themselves to a criminal charge of endangering the welfare of a child and I suppose a civil action for neglect.
This communication does not constitute legal advice and is provided for informational purposes only as I am not your attorney and you are not my client. Should you wish to obtain legal advice, you may contact my office at (212) 689-4343. This is attorney advertising.