AI: A Dual Impact on Human Cognition