Evolution towards the critical limit and the origin of Be stars