Wiktionary
don't shit where you eat
prov. (context idiomatic vulgar English) One should not cause trouble in a place, group, or situation in which one regularly finds oneself.
Usage examples of "don't shit where you eat".
He had overthrown his own personal maxim for the first time: You don't shit where you eat.