Are you sure about it detecting the falling edge? Regardless of which way round the sensor is installed the ecu will see the signal change for the leading edge, then the falling edge. Unless there's a wormhole in the cabling I can't see how it can see the trailing edge before the leading edge