you are not really buying a ticket ,you are misrepresenting ,I may be wrong but that's how it seems to me .You are showing immigration a ticket that you don't really have .
I have also seen people have been caught and rejected ( no proof but I have read in forums of this happening )
As they take fraud very seriously in Thailand I choose not to risk it .