Can a point be considered maximum/minimum if the graph ends at that point?
Consider the following image.
Point A is a typical maximum point. At that point, $\frac{dy}{dx}= 0$ and $\frac{d^2y}{dx^2} < 0$.
Now consider this image.
What about Point B?
At Point B, both the conditions $\frac{dy}{dx}= 0$ and $\frac{d^2y}{dx^2} < 0$ are also fulfilled. Yet, we don't usually think of it as a "maximum" point. Is it actually one? Am I missing something?
First, point B is indeed a maximum point. The definition of "maximum" can be accurately paraphrased as "all nearby points on the graph are no higher than this one".
However, neither $\frac{dy}{dx}$ nor $\frac{d^2y}{dx^2}$ are defined at that point. What you do have instead are one-sided derivatives (first and second), which are not the same as standard derivatives. The one-sided first derivative is indeed zero.
Note: the second derivative of the first graph, and one-sided second derivative of the second graph, does not appear to be $0$, rather negative.