兵來將擋，水來土掩

Proverb

 * 1) to take such measures as the situation calls for