This saying is a funny one, I think. It means that sooner or later you end up spilling the beans yourself. If you did or didn't do something sooner or later even if you want to hide it sooner or later you will let it show.
The fish dies by its own mouth.
The picture was taken at the Denver Aquarium in January 2007