You don't mention type of stamp or if you're leaving temporarily or not so cannot answer. I would do what Bangkok I.O. told you to do if a tourist just going home.
Not enforced but immigration may stop/refuse you if you're abusing the term/visa 'Tourist'. They want you using the visa that applies to your real situation