It's got nothing to do with race. He's advocating execution of adulterers...like a muslim country.
That may be true. However, there is no denying it has the appearance of what some would insist is a racial slur.