Semiconductor device with edge-protecting spacers over bonding pad