The text is an idiomatic expression that advises against causing trouble in an environment where one has to return regularly, such as one's place of employment or community. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
You don ' t shit where you eat .