If my ex has told me she doesn't want me to do a paternity test (mouth swab) on my alleged son, and if I were to buy the kit from CVS and did it even when she has said no, is there any way I could get in trouble for doing so?
No, you won't get in trouble for doing your own paternity test.