$f:[a,b]\to \Bbb{R}$ is said be continuous at a point $m$ that means whenever a sequence $x_n \in[a,b]$ converge to ${m}$ the image ${f(x_n)} $ converge to ${f(m)}$ and by applying this definition of continuous function if $x_n \in[a,b]$ converge to ${a}$ the image ${f(x_n)}$ converge to ${f(a)}$ and that means that the function is continuous at $a$
but if we apply the limit definition of continuity clearly $\lim_{x\to a^+}f(x)$ does not equal $\lim_{x\to a^-}f(x)$ because the limit doesn't exist in the left side so is the function continuous at its end points? and if so what did I get wrong?
Strictly speaking the limit definition of continuity is not $\lim_{x \to a^+} f(x) = \lim_{x \to a^-} f(x) = f(a)$. That itself is a special case derived when both the quantities $\lim_{x \to a^+} f(x)$ and $\lim_{x \to a^-} f(x)$ make sense.
The limit definition of continuity for $f$ at $a$ is that $\lim_{x \to a} f(x) = f(a)$. If you want to be explicit: for all $\varepsilon > 0$, there is $\delta > 0$ s.t. $$ x \in (a - \delta, a + \delta) \cap [a, b] \implies |f(x) - f(a)| < \varepsilon $$ In this case since $a$ is the left endpoint of $[a, b]$, $(a - \delta, a + \delta) \cap [a, b] = [a, a + \delta) \cap [a, b]$ and the above condition collapses to requiring $$ x \in [a, a + \delta) \cap [a, b] \implies |f(x) - f(a)| < \varepsilon $$ i.e. the requirement $\lim_{x \to a} f(x) = f(a)$ is identical to $\lim_{x \to a^+} f(x) = f(a)$ in this case.