Simply by following the new rules to come into effect from 8 November, 2025.
Customers drinking in establishments after licensing hourse face 10,000 THB fines.
See https://www.bangkokpost.com/thailand/general/3106190/b10000-fine-for-drinking-in-pubs-after-hours