Rangers held off a spirited challenge from East Stirling to secure a 4-2 victory at Ochilview in their final away game of the season.