What can be done to prevent this from happening?
The most straightforward approach, of course, is to rush out and say, "Yan Shuang is not the host of Yao Xing."
However, that would be akin to seeking death. Since the Dragon Temple's capture of Yao Xing is this world's top secret, how come you know about it? It seems you must be quite close to Yao Xing, eh? Come with us to the Tribunal for questioning.
Then how about fighting our way out?
Even more out of the question. Although Yan Shuang's martial skills are very high, it would be difficult for her to overcome the combined force of Tianye City's twelve leaders, not to mention the unfathomably skilled Fang Qingshu, along with two judges from the Holy Temple.
Or Suo Lun could just rush out and reveal his identity, saying, "I am Suo Lun," then immediately leave Tianye City on his own and never target the Silver Wolf Legion again, asking them to spare Yan Shuang?