In order to show that $\forall x\gt0, \ \exists n_0\in \mathbb N: \ n_0(n_0+1)\le x\lt (n_0+1)(n_0+2)$, the proof in my textbook considers the set $A=\{n\in \mathbb N :n(n+1)\le x\}$ and then goes to show that $A$ has a maximal element $n_0$, which completes the proof.
Now, I want to know what has led to this kind of argument, because I have begun to see it very frequently and even some of my classmates often use this method. But to me it doesn't seem to be very useful and I certainly wouldn't be able to tell if it's a good way to approach a certain proof.
I understand that such motivations usually can't be explained easily; in that case, I'm asking for other problems you know of that use a similar approach.
Everyone has their own way of proving things, and that's OK. The statement you made can be shown to be true in different ways, and what counts is that you prove it, not how you prove it. The way you learn how to prove it is that you prove many many other statements as well, and then you get used to it. Repetitio mater studiorum est.
However, if you want a path that leads to the particular proof, in this case, my thoughts would proceed as follows:
Once this train of thought concludes, I go down to really writing down the proof, and the proof "starts" with introducing the set. Sure, the proof does, but the thought process that lead me to the proof started long before.