I have no idea what the first one means. I've never read the second one, but it seems to be saying that you can get value from something one way or the other, but not both at the same time. The more common expression is that you cannot have your cake and eat it too.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Matthew.90I will not keep a dog and bark myselfI think you mean "Why keep a dog and bark yourself?". This link may help: