Man threatened sheriffs with crowbar: court