Correct the immigration officer has the final say. If for some reason they think you're undesirable yes they cannot allow you in the country. However the new rules which were changed under Thai law allows unlimited entrances on land border with the new 60 day fees on arrival