If it's in good condition, then I think it's worth it. The thing with upper segment cars is that after a while, the maintenance proves significantly costlier v/s a smaller car.
If the car condition is good, then buy it. If you plan to keep the car for say 4-5 years, then spending on it in case of issues might also make sense.