get your fingers burnt

-have something go wrong; to suffer unpleasant results of an action, especially loss of money, so you do not want to do the same thing again

She’d invested extensively in stocks and got her fingers burned when the market collapsed.