If anything bad happens to you,
you will remember the cause and avoid it the next time you come across the same situation
For example,if you have been bitten by a snake,
you'll surely shy away from it the next time you see it.
So goes an old saying, "Once bitten twice shy. "