Literally, 冗談じゃない means "it is not a joke" but actually it seems that the meaning of this is "something unthinkable even for a joke"( japanese definition:冗談にもそんなことを言ったりするな。).
「道楽に働いているんだろうだって? 冗談じゃない.」
"I'm working for the fun of it? Nothing of the sort!"
「冗談じゃない、この暑い中に誰かと結婚するなんて!」
"Imagine marrying anybody in this heat!"