There is nothing against the court investigation, that is, investigating the facts. If you think it is not true, you can refute it or explain the reasons. Objection is a procedural violation against the other party, such as intimidating witnesses.
The procuratorate has overalls, lawyers have robes, and judges have judges' clothes. The clerk has no rules, but it needs formalities.