The text is an old proverb or saying that plays on the timing of opportunities and the consequences of not acting promptly. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
He that will not when he may , when he will he may have nay .