危在旦夕

wēi zài dàn xī

in imminent peril (idiom)

on the brink of crisis

wēi

danger

zài

to exist; to be alive

dàn

(literary) dawn; daybreak

(bound form) sunset; dusk