The text is a proverb expressing the idea that it is preferable to be by oneself than to be with people who are not good for you. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
Better to be alone than in bad company .