You can't have your cake and eat it
You can't have your cake and eat it (too) is a popular English idiomatic proverb or figure of speech. The phrase literally means "you cannot simultaneously consume and retain possession of a cake", but the proverb is implying a simpler concept: Once the cake is eaten, it is gone.
Source: Wikipedia — You can't have your cake and eat it (CC BY-SA 4.0)