"How about us soldiers, what must we do?" John is not included in the words "us" and "we." The soldiers have implied that John had told the crowd and the tax collector what they must do and want to know what they as soldiers are to do. (See: [[rc://en/ta/man/translate/figs-exclusive]])
It seems that the soldiers were making false charges against people in order to get money. This can be stated clearly. Alternate translation: "in the same way, do not accuse anyone falsely in order to get money from them" or "do not say that an innocent person has done something illegal"