I must say that the proof as given is not ideal. (This may not be true in the context of more of the text.)
Ignoring the trivial typo of “if” rather than “it,” lets follow the language of the proof.
Suppose the real number b/a is q+ϵ, where q is an integer and 0≤ϵ<1.
OK. I choose as an example
eπ, which is a real number, where q is the integer 1 and
0<0.1557<ϵ<0.1558<1. So far, so good.
The proof does some simple algebra to show that
b=aq+aϵ and then states without proof that it
follows that aϵ is an integer. But it is obvious from my example that the conclusion is false.
The conclusion is true of course if b/a is a rational number, but we are specifically told that b/a may be irrational.