Alloa were only 3-2 ahead at half time.