He opened his mouth to say that she had behaved improperly, but involuntarily said something quite different.
Abrió la boca para decir a Ana que su conducta era digna de censura, mas sin querer él dijo una cosa totalmente distinta.