It's not a fine line at all. The law in the UK is quite clear: "Expressions of hatred toward someone on account of that person's colour, race, nationality (including citizenship), ethnic or national origin, religion, or sexual orientation is forbidden. Any communication which is threatening, abusive or insulting, and is intended to harass, alarm, or distress someone is forbidden."