Geodesics in static Lorentzian manifolds with critical quadratic behavior