Step-by-step explanation:
It means you can't eat a cake and continue to posses that cake once you've consumed it. The use of the phrase, therefore, is to tell someone that they can't have two good things that don't normally go together at the same time, like eating a cake then continuing to possesses that same cake so you can eat later.