The only consequence you will face is that that school will probably not hire you in the future, and if you used some agent, the agent is gonna be pissed. However, the world of teaching in Thailand is small - send a nicely worded professional email stating that you are unable to join in June, appreciate their time, apologise for the inconvenience etc.