Police said they have raided two locations in a city on the Thai border in a crackdown on online scam centres and detained more than 200 foreigners.