Sleeping on the beach in Thailand?

What are good spots to sleep on the beach in Thailand ? Is it mostly safe? Is lighting up a small campfire gonna get me in trouble ?
Thanks
10 answers 10