I'd like you to turn in your bibles to
Sanhedrin 59a.3
https://www.sefaria.org/Sanhedrin.59a.3?lang=biAnd Rabbi Yoḥanan says: A gentile who engages in Torah study is liable to receive the death penalty; as it is stated: “Moses commanded us a law [torah], an inheritance of the congregation of Jacob” (Deuteronomy 33:4), indicating that it is an inheritance for us, and not for them.
The Gemara challenges: But if so, let the tanna count this prohibition among the seven Noahide mitzvot. The Gemara explains: According to the one who says that the verse is referring to the Torah as an inheritance, this prohibition is included in the prohibition of robbery, as a gentile who studies Torah robs the Jewish people of it. According to the one who says that the verse is referring to the Torah as betrothed, as the spelling of the Hebrew word for betrothed [me’orasa], is similar to that of the word for inheritance [morasha], the punishment of a gentile who studies Torah is like that of one who engages in intercourse with a betrothed young woman, which is execution by stoning.
The Gemara raises an objection to Rabbi Yoḥanan’s statement from a baraita: Rabbi Meir would say: From where is it derived that even a gentile who engages in Torah study is considered like a High Priest? It is derived from that which is stated: “You shall therefore keep My statutes and My ordinances, which if a man does he shall live by them” (Leviticus 18:5). The phrase: Which if priests, Levites, and Israelites do they shall live by them, is not stated, but rather: “A man,” which indicates mankind in general. You have therefore learned that even a gentile who engages in Torah study is considered like a High Priest.