Thailand through to last four, Singapore stay alive