look it up yourself, it's common knowledge that migrant workers from neighbouring countries follow different rules, go to any big building project or factory even and you will find many migrant workers working legally.
Looking on your profile it appears that you are Vietnamese, many people commenting here don't realise that there are different rules for migrant workers from neighbouring countries.
I think you should direct your enquiry to your nearest Thai embassy or possibly try and find a Facebook group for Vietnamese people who are living and working in Thailand.
The ask:thailand community, consisting of multiple Q/A groups with over 100,000 members, powers this platform. It is not an official government resource. Our members actively contribute to this resource, and while we strive for accuracy, we cannot guarantee its complete reliability. Assistance to travelers is provided as a community service.