Medicine

So behind every children’s Tylenol or Motrin in the directions it saids you can’t give more then 5 doses in 24 hrs… so if your kid is in pain or has a fever for more then 24 hrs what are you supposed to give them or do you just balance between the 2 ??