Stirling propels Ireland to last-gasp win