I want to know if my case will go on my favour?

Confession: My name is Rashmiranjan Jena, what i did that day was only to help someone in need but i aided a criminal so I guess i deserve to be punished so I'm willing to pay the amount that was taken from the complaint. But anything more than that will be injustice to me. I accept my foolishness but I won't regret what I did, I'm only here because of my deepest desire to help people and I have no intention of changing my helpful nature no matter the consequences of this case. Though next time, I will not be fooled by some lowlife. The case: On July 26, 2022, I went to withdraw some cash so I went to the nearest atm(uco bank). I met a man infront of the uco bank ATM. After withdrawing the cash i needed(my ATM was emptied after that transaction), the man i met asked me if I can withdraw some cash for him which he can transfer to my account and I need to give him the cash. He gave me a number of reasons why he can't withdraw the money he had and also gave me reasons that he needed the money urgently. I felt like he really is in a serious trouble and that i could help him get out of it. Although I was in a hurry, the process was not too long so after realising all that, I agreed to help him. We both went inside the bank, he deposited the money in my account through a check(which i thought belongs to him). While we were on our way to the atm, he asked if I'll let him withdraw the cash and I said yes(hesitantly but yes) so I told him my password (which i thought that I'll change after this transaction). While he said that he wanted to withdraw the cash, i thought to myself that he's only concerned because I have his cash in my ATM and he might be thinking that I could run away, so I didn't make the guy more worried than he already looked and simply gave him the atm and password. I also didn't worry about him running away with it because I thought if he did run away then I'll simply block the atm immediately. I also didn't worry about if he tries to withdraw more money than what he had deposited because it wouldn't work since I had already emptied it previously. And so he made the transaction while i was standing behind him, he counted his cash and left. (Turns out, the check belonged to someone else) After a few days, I found out that my account has been freezed, so I went to check it. According to the bank officer, it because of some illegal transaction that I made and it might get resolved. I still didn't worry much about it and decided to wait for it to happen. I also wasn't able to revisit the bank because right after that, I went to Bangalore because of my job and stayed there until 15th of March 2023. I revisited the bank on 28th of March 2023 and the police took me in charge on the very same day. I explained the same as I have done above but according to the police the case has already been forwarded and if the settlements between the complaint and me(the accused) does happen swiftly in 3/4 days, then I will be on trail on court.