The Thailand-Malaysia border, specifically the Sadao border, is not open 24 hours for people. It was only briefly tested as a 24-hour border for freight traffic for a three-month period starting in June.
Tod *********
I will assume you're talking about the Sadao border :/
NOPE,
it was only tested as a 24 hour border for 3 months starting in June, AND it was only for freight not people.
You need to cross during the regular hours it is open