Nitpicking 101: The empty space is compact Hausdorff. So assume $X\ne \emptyset.$
Let $X_0=X$ and $X_{n+1}=f(X_n)$ for $n\geq 0.$ Obviously $A_1\subset A_0.$ If $A_{n+1}\subset A_n$ then $$A_{n+2}=f(A_{n+1})=f(A_{n+1}\cap A_n)\subset f(A_n)=A_{n+1}.$$ So by induction, $A_{n+1}\subset A_n$ for all $n\geq 0.$
Any statement about open sets has an equivalent "dual" statement about closed sets. An equivalent to "Every open cover of $X$ has a finite sub-cover" is:
$(\bullet).$ If $F$ is a non-empty closed family in $X$ and $F$ has the FIP then $\cap F\ne \emptyset.$
Translation: A closed family in $X$ is a family of closed subsets of $X...$ FIP is Finite Intersection Property, which means that if $G$ is a non-empty finite subset of $F$ then $\cap G\ne \emptyset.$
Let $F=\{A_n:n\geq 0\}$. Assuming $X\ne \emptyset,$ we have (fairly obviously) $A_n\ne \emptyset\implies A_{n+1}= f(A_n)\ne \emptyset,$ so $F$ has the FIP. Now the continuous image of a compact space is compact, so by induction on $n\geq 0,$ every $A_n$ is compact. And since $X$ is Hausdorff, compact sub-spaces of $X$ are closed in $X$. Hence by $(\bullet )$ we have $A=\cap F\ne \emptyset.$
It should be fairly obvious that $f(A)\subset A.$ To show that $A\subset f(A),$ take any $a\in A,$ and for $n\geq 0$ let $H_{n,a}=A_n\cap f^{-1}\{a\}.$ We have $$a\in A_{n+1}=f(A_n)\implies \emptyset \ne A_n \cap f^{-1}\{a\}=H_{n,a}.$$ Now $H_a=\{H_{n,a}: n\geq 0\}$ is a non-empty closed family in $X$ with the FIP so by $(\bullet )$ we have $\cap H_a \ne \emptyset.$ So take any $b\in \cap H_a.$ Then $f(b)=a$ and $b\in \cap_{n\geq 0}A_n=A,$ so $a\in f(A).$
Remark: $\{a\}$ is closed because $X$ is Hausdorff. And $f$ is continuous so $f^{-1}C$ is closed when $C$ is closed . So $f^{-1}\{a\}$ is closed. And every $A_n$ is closed. So $H_{n,a}$ is closed.