The OLE is AC and high voltage giving it the opportunity to arc or short to nearby objects. It also has the ability to induce current in parallel or nearby objects. The railway PTS rules states 2.75m as a safe MINIMUM distance. In dry weather you could get quite close to it in the right circumstances (note how small some bridge clearances are). In the wrong conditions, the wet, where poor earthing or bonding is in place things can be damn scary. I had contractors working on a bridge for me and the OLE was live but over 10m away. It was deemed safe but they touched the bridge and were thrown away, thankfully uninjured, just shocked. It turns out that the bonding was defective and earthing failed and the OLE was arcing all over the place out of sight!
DC has other issues. It leaks current like a sieve! Watch out for ballast in contact with it as a warning sign. It is quite 'safe' although not advised, to walk on the 3rd rail in rubber boots, as long as you don't step onto it or touch another rail. The danger is slipping, stepping on/off or worse touching another rail stepping on/off. You see lots of dead animals between the 3rd & running rails that have done this. Best avoid any contact with it and treat it with extreme caution. Where ballast is in contact with it, the return current is leaking out to earth, insulator pots are likely to be damaged and then you need to keep a bit clear of it, otherwise very close non contact is fine but NOT safe!
My advice? Don't take risks where the outcome is deadly. If you are happy to walk along a footpath without falling into the road, or beside a canal without falling in you should be fine beside a 3rd rail.
As other posters say, there are bigger dangers than the 3rd rail! Hit or Miss . . . say no more!