After I wrote this question, many people commented that maximum needs to be defined with a metric space and a relevant norm. Let me just simplify my question as only in $\Bbb R^1$:
For a set $A \subseteq\,\Bbb R^1$, in a euclidean metric,
<p>$m = \max(A)$ when $m\in A, \forall x\in A, x \le m$</p>
I know that the following claim is true:
A is compact $\to\;\exists\,\max$(A), and $\sup(A) = \max(A)$
Why is the following claim not true? (The claim is fixed again. I am so sorry)
For A$\subseteq\Bbb R^1$
<p>A is closed in $\Bbb R^1 \;\land\; \exists\,\sup (A) \to\; \sup$(A) = $\max$(A)</p>
I tried to find already existing questions but could find only one, which does provide a sufficient answer.