You can get anti-misfuelling adaptors for diesel filler caps that won't allow the skinny unleaded nozzles in. They have a kind of mechanical blocking device that will only unlock if the correct sized nozzle is inserted.
Having put petrol in it once, I'm now hyper aware of what I'm doing whenever I fill up so I don't reckon I need the anti-fuckup device. On the rare occasions when friends have asked to borrow my car (actually a van) to move stuff, I've always volunteered to go with them and help them move their stuff. That way I avoid the potential risk of petrol car drivers filling my car up with their favourite flavour of petrol.
Blimey John. You reminded me of a previous existence when I used to do design and construction work on EHV (extra high voltage) substations and transmission lines. It always made me a bit jumpy walking about in switchyards with 220KV corona discharge buzzing only a couple of metres above my head. In wet conditions the buzz was particularly loud and crackly, which was more than a little disturbing when you're standing right next to it.
In some of the older switchyards, the earth mat wasn't up to current (pun intended) standards, and the step voltage* was too high. So if something went wrong and there was an earth fault, you had to have the presence of mind not to leg it out of the yard as fast as you could. You had to stay put with your feet together until you'd assessed the situation, then shuffle away like a penguin taking tiny little steps.
* An explanation of step voltage for the one or two forum members who may have been off sick on the day they covered EHV switchyard design at school:

If you have EHV getting to the ground (AKA an earth fault), the step voltage is the rate at which the voltage at the ground surface diminishes with the distance away from the injection point.
For example: if there's a live 220KV conductor contacting the ground, the ground where it's touching will be at 220KV, but it reduces the further you get away from that point. So if you're standing nearby, you could have one foot on a higher voltage bit of ground than the other. If the voltage gradient is too steep (say 50KV per metre) and your feet are a metre apart, you could have a potential difference of 50KV from one foot to the other. That's more than enough to blow through the soles of your boots and give you a really bad day. Ideally you want the voltage to decrease slowly with distance so you can take normal sized steps to get to a safe place without being literally blown out of your boots.