I can understand your problem of piles and pain problem along with the same.
You have not told the month of pregnancy
. In most of the cases piles are formed due to engorgement of veins at anal sphincter. Once your pregnancy will be over all these problems will be relieved.
I suggest you to meet your gynecologist who can prescribe some safer medicine to you. As many time over the counter medication
can cause serious side effects and problem to baby too. SO do not try upon any nonprofessional advise or home remedies