if the car is mostly a piece of shit, then just sell it. you’d be saving yourself more money in the long run because you wont have to deal with fixing everything and having other shit constantly breaking down on you. i was in the same position a while ago and am glad i got rid of it.
if the car is mostly in good shape though (good body panels, good struts, mechanically good, etc…), and just the frame rails are fucked then it might be a good investment to get a temp fix for now, and worry about getting new rails in the future when you can afford to ball.