counter soldiers with arms, water with an earth weir (idiom); different situations call for different action / to adopt measures appropriate to the actual situation
to cover up; to conceal / to close (a door, book etc) / (coll.) to get (one's fingers etc) caught when closing a door or lid / (literary) to launch a surprise attack