It is certainly not against academic ethics to simply solve language problems and let editors and readers better understand the research results. Moreover, foreign publishers still encourage authors from non-English-speaking areas to polish their papers first. For example, some publishing societies will recommend authors to polish their papers and some institutions, such as Charlesworth, if there are language problems during minor repairs.
However, it is against academic ethics to modify the original intention of the sentence or even add content that is not the author's work. General regular retouching institutions are all retouching under the constraint of academic ethics.