Before you can understand why two electrons cannot match, you must first understand what they would be matching. The Pauli principle is a statement about labels. So we build every label, one at a time, from the ground up.
An electron in an atom is not a tiny ball on a fixed track. It is a fuzzy cloud of "where it might be found". That cloud is called an orbital. To describe which cloud an electron sits in, we need labels — and those labels are the four quantum numbers.
The picture: imagine onion-like layers around the nucleus. n=1 is the innermost, tightest layer; n=2 is the next layer out; and so on.
Why the topic needs it: the Pauli principle asks "are two electrons in the same shell?" — you cannot ask that without a label naming the shell. n is that label.
Within one shell, the cloud can take different shapes. The label for shape is l (azimuthal quantum number).
Why the range stops at n−1: the shape can never be more "wrinkled" than the shell allows. A small shell (n=1) only has room for the simplest shape (l=0, a sphere). A bigger shell (n=3) fits spheres, dumbbells, and cloverleaves (l=0,1,2).
Why the topic needs it: two electrons "in the same subshell" means same nand same l. Pauli must compare shapes, so it needs the shape label.
A dumbbell (p-shape) can point along three different directions in space. The label for which direction is ml (magnetic quantum number).
The picture: the three p-dumbbells point along the x, y, and z axes — three orientations, matching ml=−1,0,+1 (three values, because 2(1)+1=3).
Why the topic needs it: the parent note says "an orbital can hold at most 2 electrons." An orbital is a fixed (n,l,ml) triple. Without ml you cannot pin down a single spot.
Three labels fix the spot. But two electrons can share one spot — if they differ in one last way: their spin.
The picture (car-park analogy from the parent): the parking spot is fixed, but a car can face nose-in (↑) or nose-out (↓). Two cars fit in one spot only if they face opposite ways.
Why only two values? Electron spin is quantised — it does not vary smoothly. There are exactly two settings, which is precisely why an orbital caps at 2 electrons. See Electron spin for the origin.
Why the topic needs it:ms is the escape valve. When n,l,ml are all forced equal (two electrons in one orbital), ms is the only label left to differ — and the Pauli principle forces it to differ.
Each foundation feeds the next: size decides shape, shape decides orientation, the three fix a spot, spin fills it, and the whole address is what Pauli guards.