The text could be interpreted as a literal statement about a door that can swing in both directions, or metaphorically to mean that a situation or argument has two sides or that consequences can affect both parties involved. However, it does not exploit different meanings of a word or similar-sounding words for a humorous effect.
The door swings both ways .