A gene become mutated and alter the cell proliferation and made a cause of cancer. So, how we can distinguish the is a oncogene or tumor suppressor gene.
An important difference between oncogenes and tumor suppressor genes is that oncogenes result from the activation(turning on) of proto-oncogenes, but tumor suppressor genes cause cancer when they are inactivated (turned off).
So following of gene production might help.
An oncogene allele will result in cancer, even though its partner allele is a normal one
mutant tumor-suppressor allele will result in a protein that will not work, but that matters little if the partner allele is normal.
Since the cancer resulted from mutation of the gene in question, it is likely that the gene is an oncogene. In most cases, the origin of an oncogene is a proto-oncogene, which, in fact, is a normal gene involved in regulating cellular growth and proliferation in normal cells. When the proto-oncogene is mutated or over-expressed resulting in cancer, they are termed oncogenes.
Tumor suppressor gene on the other hand are generally normal genes, which work together with proto-oncogenes to regulate normal cellular growth and proliferation in normal cells. They usually result in cancer when their expression levels are lost or downregulated.