To live within one's means; cut your coat to your cloth.
Literally: to stretch your legs (only as far as the sheet)