This is a gray area. Testosterone is a schedule III drug and is illegal to obtain without a prescription. The compounding pharmacies and male HRT clinics (also many anti-aging clinics) often have a doctor in-house that will interpret your test results and have a phone consultation with you. That doctor, who you never see in person, will prescribe your testosterone (as well as growth hormone, which is an even grayer area) and any other ancillary drugs ( such as Nolvadex or Arimidex to prevent side effects like gynecomastia ). They usually don’t accept insurance and will ship your HRT drugs out by mail within one week. SO… technically, you’re getting your drugs from a legal pharmacy, which also happens to have a doctor on staff to provide the prescription. I don’t think you’d have anything to worry about in court. The HRT or Anti-Aging clinic, on the other hand, might have some legal questions to answer should the DA or DEA ever decide to pay them a visit, which has happened in the past.
Other significant adverse effects of testosterone supplementation include acceleration of pre-existing prostate cancer growth in individuals who have undergone androgen deprivation; increased hematocrit , which can require venipuncture in order to treat; and, exacerbation of sleep apnea .  Adverse effects may also include minor side-effects such as acne and oily skin, as well as, significant hair loss and/or thinning of the hair, which may be prevented with 5-alpha reductase inhibitors ordinarily used for the treatment of benign prostatic hyperplasia , such as finasteride .  Exogenous testosterone may also cause suppression of spermatogenesis , leading to, in some cases, infertility.  It is recommended that physicians screen for prostate cancer with a digital rectal exam and prostate-specific antigen (PSA) level before starting therapy, and monitor PSA and hematocrit levels closely during therapy.