Okay,
@Arjun ********
, do you have a VISA which is a sticker from a thai consulate in your passport and do you exit/re-enter the country every 90 days?
OR
Did you go to the thai immigration office and apply for a year extension for 1900baht?
IF you have the visa where you exit/re-enter every 90 days you're fine to continue using it.
IF you have an extension of stay, when you stop work you go cancel your work permit and then immediately go cancel your extension of stay you cannot stay on that extension if you are no longer employed