while the going is good idiom
趁还有机会时;趁情况还有利时;趁形势还未发生变化时
while an opportunity lasts
Many people fear that the newly elected government will be ousted in a military coup and are leaving their country while the going is good. 很多人担心新当选的政府会被军事政变推翻,所以趁形势尚稳定纷纷离开自己的国家。