Make sure you’re turning it the right way. (Left way, in this case.)
Use a proper pedal spanner, which will give you much more leverage than a normal spanner.
Try a large adjustable wrench if you can fit the jaws in there (by large, I mean 12″ or more). Small adjustable wrenches are terrible for rounding bolts off, but large ones have very strong jaws so they don’t spread under load like open ended spanners. If you can fit one in there, wriggle it around and tighten the jaws up as tight as you can. Then put a piece of pipe over the handle for extra leverage.
Try hammering a torx socket into the Allen key hole and use a 1/2″ drive powerbar instead of a regular Allen key. Allen keys are hopeless for high torque situations. A hex drive on a powerbar will allow you to exert much more torque and will be much less likely to round off the head. Now that you have rounded it off, the next best thing is to hammar a torx driver in there.
If you can strip the pedal off the axle, try clamping the pedal axle in a vice and heating the crank arm, then unwinding the crank arm.
Cut the axle off with a disc grinder, drill it out, and have the crank arm helicoiled.
Throw it all in the bin and buy a new crankset and pedals.
Buy a new bike and sell the old one on e-bay.