Abhishek@ I hope you are doing well now. I don't know which is the company you work for, just wanted to know whether in the Offer Letter provided to you by the company, is it mentioned that 'the company can ask the employee to Resign at any point of time during your tenure in the company'?
The reason I'm asking you this is because in my experience I had a same case and the Employee who was asked to Resign for some reason has gone to 'The Court of Law' and over there it was highlighted by the company officials that, the employee has signed the Offer Letter where it is mentioned that we can ask him/her to resign from the services at any point of time.
So, double-check the above, and if you don't find anything as such; you don't have to Resign from the services. You can go-to 'The Court of Law' and demand for your rights.