Toyota make good vehicles which are very reliable but only if they are kept to "toyota standards" and not toita shtandurr.
Standard doesnt mean you have it washed like a buffalo and sprayed with oil, but actually having it maintained with real toyota genuine parts being replaced exactly as toyota specify (not haath ka andaaza 20 saal tajurbaa ki waja se) - This is what the caveat is.
Making it to "toyota normal operating standard spec" requires a little bit of educated approach to the repair and also not pinching pennies in the name of "made in Afghanistan" parts. just like when redoing an injection pump do not let any jackass work on it, make sure its done by a real diesel injector lab like Denso in Karachi. The cost difference is negligible if you give them an unmolested pump, however to redo a "molested" pump back to spec will result in the cost going 10x times as much in some cases.
Its not just toyota infact, any vehicle can be maintained for good service life if you make sure its "maintained" to factory service spec.
If you are going in blind and assuming the basket case car can be revived to factory reliability by visiting 20 saal tajurbaa champions - then better to pile your cash and burn it, you can atleast enjoy some tikka out of that fire.