You have to follow the regulations about medicine, and it may involve declaring it (“red entry”) to bring the medicin into Thailand.
It can have serious consequences if you don’t declare, so don’t try going through loopholes.
************************************************************************************