Overstaying your visa in Thailand is illegal. If you are caught there will be a fine and you may very well be arrested depending on hing you have overstayed you visa. They will bring you to Bangkok. You will need to have your airline ticket to go home from the IDC.