(Old fashioned) Avoid someone. Stay away from somebody. A berth is for parking a ship, so a big ship needs a wide berth to enter, so this idiom means don’t constrict the operation of someone, especially a mean person. (Compare to Hot and bothered.)
Give wide berth
DEFINITION