As an HR person, I’d agree with this, with the caveat that you actually can go to HR or management on the first instance. But it can be really effective to speak/ email directly to the person. Because HR needs to take this stuff really seriously, sometimes it works out better to handle what you can yourself so we don’t have to get all evil on you . A simple, “Please don’t send me religious emails” gets my vote.