I say it depends on the car but I try to stay around 150k. But I've had hondas over 200k run amazing for years. I know people who never worry about the miles and get cars that last. Also depends how maintained the car was.
If they've been maintained well then they may last a while.
My FIL has a '95 Toyota Tacoma with around 600k miles. It breaks down a lot, and I mean a lot, but he keeps fixing it and it keeps going. I call it Frankenstein😂
If you're wanting long term them maybe less miles, but if you're in a bind and really need something then I wouldn't get something over 150k miles.
A Toyota at high mileage is more likely to run longer than most other brands. That being said, 130-150 is quite high so just be realistic about what you can expect. It will likely require maintenance as parts wear out no matter how good the car is and you may need to replace it sooner than you would like but if it’s what you can afford right now it could be worthwhile. A lot also depends on how well the car was maintained.