The phrase for keeping your distance from someone for whatever reason is derived from the practice of positioning ships at anchor with enough space between them so as to prevent them colliding if they swung in high winds or strong currents.Hence the saying 'To give someone a wide Berth'.