What is the meaning of [You made your bed, now you have to lie in it]

No one likes sleeping in a poorly made bed. If you make your bed with the sheets all tangled and blankets facing the wrong way, you can’t switch with someone else. You have to sleep in that bed. This proverb uses bed-making to describe any bad situation in which you may find yourself. You can’t trade places with anyone else. You must live with the results of your actions, so make good choices.