American sailors will be barred from certain areas and activities and risk prosecution for violating Thai law.