Acceleration of the ball at the highest point is g downwards
The ball reaches its highest point when its velocity is zero; the acceleration of gravity is never zero (it is always 9.8 m/s2 downward)
Gravitational force is acting on every object every time. At the highest point the velocity is zero but still the ball is under the influence of gravity ,here the acceleration due to gravity is acting downwards