If you can’t pay for it in cash (without running into financial trouble), then you probably can’t afford it.
And if you can’t afford it, then you should probably not buy it.