An alternative solution, directly continuing Jellyfish's beginning of a solution to G&P's Problem 5-10, Chapter 1.
Since $df_x$ has no eigenvalues equal $1$, by Problem 5-9 of G&P
$$\text{graph}(df_x) \pitchfork \Delta(T_x(X)\times T_x(X)).$$
It's an easy exercise to check that $\Delta(T_x(X)\times T_x(X)) = T_{x,x}(\Delta(X\times X)),$ so we now have
$$\text{graph}(f) \pitchfork \Delta(X\times X).$$
The overlap of these two sets is $W := \{(x,f(x))\colon x\in X, x=f(x)\},$ in bijective (in fact, diffeomorphic) correspondence with the set of fixed points of $f$. Now, by the transversality theorem from G&P, $W$ is a submanifold of $X\times X$. Furthermore, $\text{codim}(W) = \text{codim}(\text{graph}(f)) + \text{codim}(\Delta(X\times X)) = 2n.$ But this shows that $W$ is in fact a manifold of zero dimension, that is a set of isolated points. Thus the set of fixed points of $f$ is also an isolated set. As a subset of compact $X$ it must thus be finite.