It all hangs on "reasonableness" for which there is no legal definition. Generally if there is no lasting harm (like setting fire to the office) then there is a process like a three strikes rule in which the employee is given a chance to mend their ways (like not swearing).