If $f$ is reducible, then in particular $f$ is reducible modulo every prime $p$ – since $$f(x)=g(x)h(x) \implies f(x) \equiv g(x)h(x) \pmod p $$for every $p$.
So if $f=gh$ where deg $g$ = $1$, then modulo $2$ we would expect $f$ to have a degree $1$ factor. Since this is not the case, we cannot have deg $g = 1.$
Similarly, if deg $g = 2$, then we would expect $f$ to have factors with degrees summing to $2$ modulo $3$. Since this is not the case, we cannot have deg $g=2$ \- so $f$ is irreducible.
As a side point, if you haven't discovered it yet, this website has a large collection of notes based on the Cambridge Tripos that may be worth looking at!