Never shit on one’s own doorstep
A vulgar saying that urges one never to harm or endanger one's own interests, and dates from the late 19th century. It's a more modern but less tasteful version of the old saying 'never foul one’s own nest', which dates from the 13th century.