It has little effect on the later crimes. The criminal suspect's initiative to compensate the victim before the judgment can be considered as a sentencing circumstance, that is, the court can appropriately give a lighter sentence.
As for the judge saying that he won't give you a criminal sentence, you should stand on the victim's side. It was lawful for the court to do so, and criminal judgment did not give it to the victim. If you want to know the verdict, you can apply to the court to sit in on the trial. When the court makes a verdict, it usually chooses another day to read the verdict in court. You can find out when, and then you will know how to convict.