Street food is not the risk people think
The advice to avoid street food is both very common and mostly wrong. A busy stall cooking to order over high heat in front of you is often safer than a quiet restaurant serving something that has been sitting in a warmer since lunchtime.
Give yourself a couple of days. Most "food poisoning" on a first trip is not contamination at all — it is an unfamiliar diet, far more chilli than usual and a lot more oil, arriving at a body that is also dealing with heat and a long flight. Ease in and it usually settles by itself.
Thai spicy is a different scale. Mai phet means "not spicy" and will still be warmer than you expect; mai phet loey means "not spicy at all". Rice or something dairy helps afterwards — water does not, it just spreads it around.
If you do get ill: rehydration sachets, rest and plain food. See a doctor for fever, blood, severe pain or anything lasting beyond two or three days — and sooner for a child or an older adult. In this climate the dehydration is the real danger, not the bug.
We live here — ask us anything about Hua Hin and you will get the real answer.