Do I allowed to use visit tourist visa to clear my tax ?

Recently I have resign,
Unfortunately, I forget to clear my tax for 2018.
I want to take care of it personally in malaysia
Am I allowed to go to Malaysia just to take care of it ?

Yes, you can. But the company needs to  either provide you with the Leavers Certificate CP21 or have lodged it with LHDN already