Should I buy a temporary phone?

Iv been using a galaxy s5 for over 2 years and I'm due for an upgrade. I'v promised myself I'd wait for the iphone X and its finally here. My phone currently has many problems. It needs a new battery, battery cover, new USB cable and any cable I use, my phone would not charge I have to keep playing around with it. I don't want to get a new iPhone X because I can't afford it at the moment. I thought of buying off a used phone for a few months

Ask friends if they have a phone they'd give you or sell for cheap.

Well, iPhones tend to hold on to their value for a while & the iPhone X starts off at a higher price, therefore the time it would take to be affordable, by whatever your definition of the term is, would be longer.

Whatever phone you get to use as an in between would likely be used for longer than you think