@Tod ********
advised
It is totally 100% dependent on THAT specific border crossing. It is NOT a universal rule by any means.
It seems prevalent with some of the Cambodia/Thai borders AND some of the Malaysia/Thai borders.
My advice to people is GOOGLE the border you're thinking of bouncing out and back in at <- That action is what is making them keep people in the neighboring country for 24 hours.