Larne came from behind to secure a 2-1 win away to Ballymena United and edge themselves to within two points of an automatic European spot.