It is known that by applying the universal coefficient theorem, the singular cohomology of closed manifold with coefficient $\mathbb{Z}_2$ vanishes in high dimensions. But for a metric space $M$ with hausdorff dimension not larger than $n$, where $n\in\mathbb{N}$, it seems impossible to applied the universal coefficient theorem to prove that $H^{n+k}(M;\mathbb{Z}_2)=0$, $k\geq 1$, as $M$ is not necessarily a manifold. Whether there is a way to prove it? Or is there a counterexample?
Edit: By Johannes Hahn's suggestion, I change my question a bit to make it a better one.
The metric space $M$ above with hausdorff dimension not larger than $n$ should replaced by a compact metric space $M$ with topological dimension $n$. Other words will not be changed.