We might say something like (assuming this bad turn was done by a friend), "With friends like you, who needs enemies?"

Or, sometimes, again sarcastically, "Thanks a lot. I love you, too."