Describing a change to DNA methylation "alters" a gene is technically correct in the sense that it is an change to the molecular structure of the DNA that makes up the gene, but is indeed misleading, because without further clarification a majority of people would assume it refers to a change in the gene sequence.
DNA methylation means adding one or more methyl groups to the DNA, so technically it is an alteration. But most people would assume that altering a gene specifically means changing the "letters" of the gene sequence that encode the protein, and that's not what DNA methylation does.