How evil do you think is too evil?

When writing or experiencing media when do you think evil makes you hate the work instead of the character? Where is the line between purposeful and edgy? Is it entirely based on you doing the work well or do you need a base amount of tact? And if a creation has too many triggers then is that just a sign of a bad product or is that the identity of a bad product?