A cough could be dangerous if it lasts longer than three weeks or includes symptoms like coughing up blood, shortness of breath, wheezing, spasms, turning blue, a fever for longer than a couple of days for children, dizziness, or chest pain.