A warning about sharks has been ordered off a coastal province in the Gulf of Thailand following an attack on a foreign tourist and prior sightings.