見機行事

listen to the pronunciation of 見機行事
Китайский Язык - Английский Язык
see the opportunity and act (idiom); to act according to circumstances
to use one's discretion
to play it by ear