From classical to quantum regime of topological surface states via defect engineering