Remember, when plugged in at either end, power can go through the converter to the inlet / cord on the other end.
As SoundGuy mentioned, you would need some way to positively disconnect whichever power inlet was not currently in use. Most preferrable would be something that acts automatically, or, a breaker system where only one can be energized at a time. Otherwise, when you were plugged in at the front, your main shore power inlet / cord would become a suicide (male plug that is energised) cord, and when your main shore power was plugged in, the front inlet would be the suicide plug. Somebody could get killed, touching one of those live plugs. You could also have some nasty issues, if you happen to hook up both shore power and genny at the same time.