Is the Raspberry Pi polarity protected on the USB?
The 3B+ is not intentionally reverse polarity protected. However, D7 could clamp it to somewhere around -1.5V, the forward voltage of suppression diodes is quite high.