When you bite your nails, the bacteria under the nails enter your mouth and intestines to the point where they can cause gastrointestinal infections, leading to diarrhea and abdominal pain.