趋利避害

qū lì bì hài

(idiom) to make the most of the benefits while avoiding adverse effects

to hasten

sharp

to avoid

hài

to do harm to