As far as I can tell, the law given to the Hebrews only pertains to a Jew's behavior while dealing with other Jews. There is no penalty, and does not apply to a Jew's behavior towards a Gentile.
Read a little further-- Leviticus 19:34 says that if a "stranger" (non-Jew) lives among you, you must love him as yourself.