A position is winning if the player whose turn it is can force a win with perfect play. A position is losing if every move leads to a winning position for the opponent. This definition is recursive. Terminal positions are evaluated first, then you work backward.
If you can move to any losing position, your current position is winning. You want to force your opponent into a losing position. If all your moves lead to winning positions for them, you are in a losing position.