@Vicky *****
if the time is up, since you left Thailand you can try an entry. Definitely have all the bases covered, 20,000 baht or equivalent currency in cash, a ticket out within the time you'd be stamped in for, and booked accommodation for a week or more. Come in with a visa.
What type of offence, criminal or immigration?