1 Rambam, Mishneh Torah, Hilchot Yesodei haTorah 5:3
All of this is outside of the time of a decree. During the time of a decree, such as when Nevuchadnezzar and his colleagues decree upon Israel to nullify their religion or one of their mitzvot, the Jew should be killed rather than violate even one of the other [non-Big Three] mitzvot, whether among ten [Jews] or among idolaters