Chinese words · Chengyu

防患未然

fánghuàn-wèirán

to take preventive measures

Meanings from our own dictionary. Chengyu from the Xinhua idiom list, the most common first.