In the future, always start the posting with the question.

I wasted time before I came to the actual question.

Suppose that is not connected.

Then there are two nonempty separated sets such that .

WLOG we can say that being connected . Connected sets cannot be separated.

But not point of is a point or a limit point of .

There is a contradiction there. What is it?