The text is a humorous toast that plays on the potential situation of a person having both a sweetheart and a wife and the desire for these two individuals to remain unaware of each other. It does not rely on the different meanings of a single word or similar-sounding words.
To our sweethearts and wives . May they never meet !