gdyby kózka nie skakała, toby nóżki nie złamała

Etymology
lit. 'if the goat had not been jumping, it would not have broken its leg'.

Proverb

 * 1)  If it wasn't for one's earlier actions, one wouldn't now face its negative consequences; as you sow, so shall you reap; sow the wind, reap the whirlwind; play stupid games, win stupid prizes; you get what's coming to you;  fuck around and find out