Not sure what passport you are holding. I was at the Mae Sai border once and the immigration officer didn't know that either, went to the supervisor and there was a such a thing as a 90days tourist visa.
Did you count arriving 2days later depending on where you are flying from?