Say you finish building a house. You think one of the nails isn't needed, so you pull it out. The house collapses. You took a huge risk for minor, trivial gains, and it didn't pay off.
What is a way to express this concept? I am looking for a phrase. Or a quote, or sentence, or something similar which would clearly express this.