> "Don’t shit where you eat" is a warning against office romances.
It's a warning against poisoning an environment on which you depend that has been applied to lots more than office romances, though that may be the most common use in some social circles today.