因小失大

to try to save a little only to lose a lot, to be wise...