France warns African leaders against trying to keep power