The Malaysians, who reached the last four as the Group B runners-up, silenced the home crowd by taking a 3-0 lead at halftime before the Thai side turned the game on its head after the break, scoring three goals in five minutes before securing a hard-fought win.
They will face Myanmar in the title showdown on Sunday at the same venue. The game kicks off at 7pm.