Apple is on the brink of a $3 trillion valuation after a blistering stock rally this year