WA businesses have been warned to exercise caution during office Christmas functions and informal afterparties to prevent sexual harassment and assault, as new legal obligations could hold them accountable.