常在河边走,哪有不湿鞋 chángzàihébiānzǒunǎyǒubùshīxié it comes with the territory
Literally "if you often walk by the riverside, your shoes are bound to get wet"; a proverb meaning that if you stay in a risky or tempting environment, you will eventually be affected or get into trouble.