Ask two questions
First, is the player to move in check? Second, does that player have any legal move? Checkmate means the king is in check and there is no legal response. Stalemate means there is no legal move, but the king is not in check.
Compare two positions
In the recognition exercise, Black has a king on h8, while White has a king on f6 and a queen on g6. Black is not in check, but g8, g7, and h7 are covered. With Black to move, this is stalemate.
Keep the move in mind
The avoidance exercise starts with White king f6, queen g5, and Black king h8. White can play Qg7 checkmate, supported by the king. Qg6 instead leaves Black without a legal move and without being in check: stalemate.
Build a checking habit
After you choose a move, inspect checks, captures, and escape squares before committing. When you have an extra queen, a quiet move deserves the same care as a forcing check.
Rules reference: FIDE Laws of Chess, articles 3 and 5. Explanations and positions on this page are original to this site.