The text is a play on the common moral advice to resist temptation, but it humorously subverts the expectation by suggesting that one should give in to temptation. It does not rely on the different meanings of a single word or similar-sounding words.
Resist everything but temptation .