The text is a proverbial expression meaning that disloyal people will abandon a person or situation that is failing or about to fail. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
Rats desert a sinking ship .