Touch and go

Uncertain, in a dangerous situation.

It was touch and go whether the girl was going to survive after the car accident.