Through the fences on either side of the right-of-way of such railroad, at such crossing, such railroad shall construct, keep and maintain gates so as to permit the passage of animals, farm implements and vehicles.