Look around forums and you will see other people also had the same experience. Happened to me. Happened to others. So unless you were denied entry by an IO for having less than 6 months, or have others denied entry into Thailand by an IO then you are the one who is wrong. Visa applications need 6 months, most airlines will deny boarding if less than 6 months, but border IO do not.