Consider a player who is in check. Suppose they can make a move that would put the opponent in checkmate, but would not stop themselves from being in check. Would that be a legal move?
For example, in the position below, if Black plays ...Rf8, it will put the White king in checkmate, but the Black king will still be in check. Is this move legal?
[FEN "K7/8/2n5/1r6/8/8/3k3R/5r2 b - - 1 0"]
[StartFlipped "0"]
(To be clear, this position is displayed from White’s point of view, even though it is Black’s move.)