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”, indicating that it is an inheritance for us, and not for them. […] this prohibition is included in the prohibition of robbery, as a gentile who studies Torah robs the Jewish people of it.
Talmud, Sanhedrin 59a