means that
those who choose to enjoy a pleasure or undertake an activity must also accept the costs and obligations it entails.
Imagine a case where actions have consequences, one must accept responsibility for the outcomes or obligations that result from one's choices or activities; people…; then “If you dance you must pay the fiddler” fits well.