Give a wide berth
Originally, a nautical term for ample sea room or anchorage away from other ships dates from the 1600s. Its modern figurative usage extended into non-nautical contexts and meaning to shun or to avoid someone dates from the 18th century.