I would say it wasa bad idea because you get a voltage drop across the diode and so you only supply the USB device with 4.3V or so.
Back feeding the power to the Mac should not happen, was the arduino being powered? Was the Mac per mentally damaged or was it alright after a restart?