Go through these in order and stop at the first one that applies. If you are reading this for someone else, answer for them.
Call emergency services if you have trouble breathing, cannot swallow saliva, are drooling, or have rapidly increasing swelling of the mouth, face, or neck.
Bad breath alone is not usually an emergency.
And for anyone, someone who:
Arrange care sooner if you have toothache, loose teeth, bleeding or swollen gums, mouth sores, or problems with dentures.
Seek same-day dental or medical care if bad breath occurs with fever, worsening tooth pain, facial swelling, pus, or difficulty opening your mouth.
These can be signs of an infection that needs prompt treatment.
And for anyone, someone who:
Book a dental appointment if bad breath continues for a few weeks despite regular brushing, tongue cleaning, and cleaning between your teeth.
And for anyone, someone who:
The article also says
See a doctor if a dentist does not find a mouth-related cause, or if you also have ongoing dry mouth, nasal blockage, throat symptoms, reflux, or other unexplained symptoms.
Every sign above is quoted from the sofidex article on Bad breath. If you are not sure, err upward — it is always reasonable to be checked.