In $\mathbb{Z}\left [ x \right ]$, let $I = \left \{ f\left ( x \right ) \in \mathbb{Z}\left [ x \right ]: f\left ( 0 \right ) \text{ is an even integer} \right \}$.
Is $I$ a Prime ideal of $\mathbb{Z}\left [ x \right ]$?
Let $f_{1}\left ( x \right ),f_{2}\left ( x \right ) \in \mathbb{Z}\left [ x \right ].$
Let $f_{1}\left ( x \right )f_{2}\left ( x \right ) \in I$.
Clearly, I is a proper ideal of $\mathbb{Z}\left [ x \right ]$ since the elements in $\mathbb{Z}\left [ x \right ]$ evaluated at 0 can produce an odd integer but this cannot be true in I.
Now, $f_{1}\left ( 0 \right )f_{2}\left ( 0 \right )$ is an even integer in I. Hence, either $f_{1}\left ( 0 \right )$ has an even constant integer or $f_{2}\left ( 0 \right )$ has an even constant integer. Thus, I is a prime ideal by definition.
Is this correct?
I would now like to show if I is a maximal ideal.
Again, clearly, I is a proper ideal by the above argument. Let B be an ideal of $\mathbb{Z}\left [ x \right ]$ and I $\subseteq B\subseteq \mathbb{Z}\left [ x \right ]$. How should B be defined so that I would conclude either $B=I$ or $B=\mathbb{Z}[x]$?
Your argument for primality is correct.
For maximality, consider the two ring homomorphisms \begin{align} \alpha&\colon \mathbb{Z}[x]\to\mathbb{Z} & p(x)&\mapsto p(0) \\[6px] \beta&\colon \mathbb{Z}\to\mathbb{Z}/2\mathbb{Z} & m&\mapsto m+2\mathbb{Z} \end{align} and look at the kernel of $\beta\circ\alpha$.