I am currently trying to prove that if $f:X\rightarrow Y$ is a closed continuous map between topological spaces such that $f^{-1}(y)$ is compact for all $y\in Y$ then f is proper. In this sense $f$ is proper if for every compact set $K\subset Y$ we have that $f^{-1}(K)$ is compact in $X$.
I am really quite lost on this one as I feel like I don't know enough about $X$ or $Y$ to really do anything. In previous problems/proofs I was working on like this I usually had that $Y$ or $X$ was locally compact or Hausdorff.
Since I didn't really know what I should do, I tried writing the pre image $f^{-1}(K)$ as:
$$f^{-1}(K)=\bigcup_{y\in K}f^{-1}(y)$$
However this doesn't really seem useful as an infinite collection of compact sets needn't be compact. I suspect continuity or the closedeness of $f$ could help but I can't see how. Any hints to get me going in the right direction would be much appreciated.