Language:
Free Online Dictionary|3Dict

量体裁衣

Source : CEDICT

lit. measure the body then tailor the suit (idiom); fig. to act according to actual circumstances/To live within one's means.