The text suggests a sequence of actions that play on the wisdom of not insulting an alligator until you are safely across the river, where it can't reach you. It does not rely on the different meanings of a single word or similar sounding words for a humorous effect.
Cross river * THEN * insult alligator .