Beijing’s focus on thwarting spying has been a long-term strategy, observers say. Photo: Reuters