防患未然

fáng huàn wèi rán

to prevent troubles before the event (idiom)

to forestall; to nip sth in the bud

fáng

to protect

huàn

to suffer (from illness)

wèi

not yet

rán

correct