A Case of Pikuach Nefesh

The Gemara recounts a story where the government sent two officers to a yeshiva to study Torah. The government wanted to find out if there was anything objectionable in the Torah. The yeshiva had no choice but to accept these new students. After the officers felt they had studied enough, they declared, “We have studied your entire Torah and found nothing wrong except for one matter. Your laws state that the Jewish owner of an ox that gores a Canaanite-owned ox is exempt from paying for any damages. However, a Canaanite must pay full damages if his ox gores a Jewish-owned ox.” The Meiri explains that the Canaanites were not careful about damages to anyone’s property but their own. Still, these two officers found that law to be objectionable. However, because of the warm and gracious treatment in the yeshiva that they experienced, the two officers stated that they will keep this matter a secret.
The Yam Shel Shlomo wonders why didn’t the rabbis of the time just falsely claim that the law was different? After all, if the two officers reported this law to the government, the government could have passed harsh and dangerous decrees against the Jewish nation. Now they had to rely on the graciousness of the two officers to keep their word that they would remain silent. Wouldn’t the falsehood have been justified in the face of pikuach nefesh? The Yam Shel Shlomo concludes from here that falsification of the Torah is absolutely forbidden under any circumstances. The rabbis were not allowed to lie and change the halacha even for the sake of preventing dangerous decrees.