The former intelligence chief has warned of the dangers to national security associated with deeper links with China.