Mexico gained a narrow 1-0 victory over Cameroon to give themselves a good chance of escaping Group A.