(ב) אָסוּר לְאָדָם לוֹמַר שֶׁהוּא עוֹבֵד כּוֹכָבִים כְּדֵי שֶׁלֹּא יַהַרְגוּהוּ. אֲבָל אִם כְּדֵי שֶׁלֹּא יַכִּירוּהוּ שֶׁהוּא יְהוּדִי מְשַׁנֶּה מַלְבּוּשׁוֹ בִּשְׁעַת הַגְּזֵרָה, מֻתָּר כֵּיוָן שֶׁאֵינוֹ אוֹמֵר שֶׁהוּא עוֹבֵד כּוֹכָבִים. הַגָּה: וַאֲפִלּוּ לוֹבֵשׁ כִּלְאַיִם. (נ''י פֶּרֶק הַגּוֹזֵל בַּתְרָא). וְאַף עַל גַּב דְּאָסוּר לוֹמַר שֶׁהוּא עוֹבֵד כּוֹכָבִים, מִכָּל מָקוֹם יוּכַל לוֹמַר לָהֶם לָשׁוֹן דְּמִשְׁתַּמֵּעַ לִתְרֵי אַפִּין (נִמּוּקֵי יוֹסֵף פ' הַגּוֹזֵל), וְהָעוֹבְדֵי כּוֹכָבִים יָבִינוּ שֶׁהוּא אוֹמֵר שֶׁהוּא עוֹבֵד כּוֹכָבִים וְהוּא יְכַוֵּן לְדָבָר אַחֵר. וְכֵן אִם יוּכַל לְהַטְעוֹתָם, שֶׁהֵם סוֹבְרִים שֶׁהוּא עוֹבֵד כּוֹכָבִים, שָׁרֵי. (ת''ה סי' קצ''ז) וְכֵן בְּדֶרֶךְ זֶה, מִי שֶׁלִּבּוֹ הֶעֱלָה טִינָא וְחוֹשֵׁק בְּאֵשֶׁת אִישׁ, אִם תּוּכַל אִשְׁתּוֹ לָבֹא אֵלָיו וְשֶׁיִּסְבֹּר שֶׁבָּא עַל הָעֶרְוָה, שָׁרֵי. (שָׁם בנ''י). וְכָל זֶה לֹא שָׁרֵי רַק בִּמְקוֹם סַכָּנָה, אֲבָל שֶׁלֹּא בִּמְקוֹם סַכָּנָה כְּגוֹן שֶׁיִּלְבַּשׁ בִּגְדֵי עוֹבֵד כּוֹכָבִים שֶׁלֹּא יַכִּירוּהוּ שֶׁהוּא יְהוּדִי וְיַעֲבִיר מֶכֶס, אוֹ כַּדּוֹמֶה לָזֶה, אָסוּר. (אֲשֵׁרִ''י ונ''י פֶּרֶק הַגּוֹזֵל בַּתְרָא ות''ה סי' קצ''ו וּשְׁאָר פּוֹסְקִים).
(2) Shulchan Aruch: It is forbidden for a man to claim that he is an idolater so that they will not kill him; if, however, so that they will not know he is a Jew, he changes his clothes during a time of legislation, this is permitted, since he does not say that he is an idolater. Rama: Even if he must wear shaatnez (Nimukei Yosef Bava Kama Perek haGozel (the second one)). Even though it is forbidden to say that he is an idolater, nonetheless he may say things that can be interpreted multiple ways (Nimukei Yosef Bava Kama Perek haGozel) and the idolaters will understand that he has said that he is an idolater while he means something else. Likewise, if he can trick them so that they will think he is an idolater, this is permitted (Trumas HaDeshen Siman 197). In the same vein, one who desires another man’s wife - if his wife can sleep with him such that he will believe he is sleeping with the forbidden woman, this is permitted (ibid in the Nimukei Yosef). All of this is permitted only where there is a danger, but where there is no danger - for instance, he wears idolaters’ clothes so they will not recognize that he is a Jew so that he can avoid the tax or suchlike - that is forbidden (Hagahos Ashiri and Nimukei Yosef Bava Kama Perek haGozel (the second) and Trumas haDeshen Siman 196 and other authorities).
Bereishit Rabbah 82:8


Menachem ben Solomon Meiri (1249 – 1306) - Catalonia

Follow this link for the complete source book.
https://drive.google.com/file/d/0B64GDxPxJSaja1dRTjhPRHZUWk1Rcml2cG1pRHVaTmhqNV9B/view?usp=sharing
