〜にもほどがある
there's a limit to (this is going too far)
Noun / Verb dictionary form + にもほどがある
Sign up free to review this point on a spaced schedule.
にもほどがある is an exasperated "there's a limit to X!", meaning someone has gone way too far: 冗談にもほどがある, "that's taking a joke too far".
It follows a noun (冗談, わがまま, 失礼) or a verb (ふざける, ばかにする). It's usually an angry response to someone's behaviour, often ending the sentence with だ or よ.
ほど means "degree, limit", so it's literally "even X has its proper limit". It's common in conversation and TV dramas. ばかにするにもほどがある, "that's too insulting!", is a very typical line.
Compare にすぎない (N2), "nothing more than", which minimises instead of complaining.
Examples
そんなことを言うなんて、冗談にもほどがある。
Saying something like that is taking a joke too far.
二時間も遅れるなんて、遅刻にもほどがある。
Two hours late? There are limits.
こんな時にふざけるにもほどがある。
Messing about at a time like this is going too far.
人をばかにするにもほどがある。
That's far too insulting.
自分のことばかりで、わがままにもほどがある。
Thinking only of yourself? There's a limit to how selfish you can be.