Especially if you think there is something called a “5-50 220V socket”.
I just checked the outlet charts, and I was really surprised to find that 5-50 outlets do actually exist, but they are amazingly rare, so I also doubt that it's what the OP has. And the 220 thing is just an irritating wrong terminology thing, but doesn't really make a technical difference.
Still,
@FMinMI I don't recommend messing with that unless you have to for something that you just can't buy an adapter for. When Tesla sells the original ones for $35 each, it's not worth the risk of trying to build one yourself.
The other factor on this is that you were relatively safe-ish for the one you did on the Volt charging cord. The cable and car don't have much adjustment of how many amps it is, so it is still going to use the same 8 or 12 reasonable amps from either 120V or 240V. That's not that big an issue, because you're not going to overdraw whatever outlet type you adapt it to, so it's hard to get in trouble there. But it's a little different with Teslas, when people make these homemade adapters, where they put a plug for a 20A or 30A outlet type on one end and adapte it for the Tesla 50A adapter, that creates a potential dangerous problem. The car will by default try to draw 40A from that 30A circuit, and if you are lucky, the breaker trips in time. You have to manually dial down the current in the car to safely do that, and it is supposed to remember that amp setting for that location, but there have been many cases where a software update accidentally forgets that lower setting, and it goes back to drawing 40A from that undersized circuit.
So generally just don't do it, or if you really must, then ONLY make adapters that are at the same current level, like 30A to 30A or 50A to 50A. That will properly manage the current level without you needing to remember to dial anything down.