Answer:
No principal ideal $(f(x))$ is maximal. If $f(x)$ is an integer $ n\ne ±1$, then $(n, x)$ is a bigger ideal that is not the whole ring. If $f(x)$ has positive degree, then take any prime number $p$ that does not divide the leading coefficient of $f(x)$. $(p, f(x))$ is a bigger ideal and it's not the whole ring, since $Z[x]/(p, f(x)) = (Z/pZ)[x]/(f(x))$ is not the zero ring.
I have a few questions about the answer. If someone can please clarify, that would be great.
Firstly, $(n,x)$ is the ideal generated by a linear combination of $n$ and $x$, is that correct? So that is the set of polynomials having $n$ as coefficients?
For the second part, can someone clarify why $(p,f(x))$ is a bigger ideal than $(f(x))$? Namely, this part: $Z[x]/(p, f(x)) = (Z/pZ)[x]/(f(x))$?