The middle pin is used for 2s packs, with the balance wire connected between the first and second pack.
The outer pins are used for 3s packs. The 1st pin is connected between the first and second battery, and the 3rd pin is connected between the second and third battery. If you connect it backwards, it won't charge. Nothing will blow.