The text appears to be a subversion of the common moral advice 'when in doubt, tell the truth', but it does not exploit different meanings of a word or similar-sounding words for a humorous or rhetorical effect.
When in doubt , tell a lie