Avenatti’s lawyering is so central to the criminal case against him that trial testimony so far also is testing the divide between crimes and malpractice.