How can you stop a child from biting his or her nails?

You can't. The more you try to stop it, the more he/she does it. This habit is often associated with other symptoms that indicate a hyperactive nervous system, most commonly activated through the ingestion of sugar in all its forms, including "diet" drinks.