The danger may be sometime in the future when someone is altering/adding to the wiring and assumes what should be the earth core is actually neutral.
If it isn't already, I would recommend that the cable is clearly labeled at both ends using a method that won't fade or fall off over time.