手前 => considering; before; in front of; one’s standpoint N1
のが上手 => to be good at doing something N5
のが下手 => to be bad at doing something N5
~ひょうしに(~拍子に)   => the moment [A], unintentionally / inadvertently caused something to happen N1