Regulation of Stereoselectivity and Reactivity in the Inter- and Intramolecular Allylic Transfer Reactions