Bromine attacks to the less hindered end to give prenyl bromide. Methyl groups stabilizes carbocation, but protons of methyl group makes the surrounding around it crowded. The other resonance structure,Allylic cation, is also very stable, because p-orbitals of double bond interacts with empty p-orbital of carbon at the end. Indeed the electrophilic addition by proton from HBr happens to the double bond at the left, because positive charge delocalizes between carbocation and allylic cation. If addition happens to the other double bond methyl group cannot contribute to stability of cation. After electrophilic addition, nucleophile attacks to the less hindered end, because there is simply more space to go in. The reaction is similar to Sn1 substitution to allylic compound. Bromine attacks to the end. You can think it this way. Carbocation takes its electrons where it gets it most easy, from double bond nearby. Then Br attacks to the end of allylic cation, because Br is the only at the surrounding to have free electrons to react.
J. Clayden, Organic Chemistry, 2nd edition, 435.