Correct
量体裁衣
/ liáng tǐcái yī /
Strokes
Definition
lit. measure the body then tailor the suit (idiom); fig. to act according to actual circumstances/To live within one's means.
Example
Definition
cut the garment/coat/clothes/dress according to the figure―act as the circumstance allows/requires; act according to actual circumstances