I don't believe in a general "line" that can't be crossed. Instead, there are billions of lines because it's subjective for each person. Personally, it takes a lot for me to be offended, and I'm of the opinion that any topic has the potential to be humorous if done correctly. The context of the situation and the audience are key.