If your urine tested high for glucose you should have your screening early. Diabetes in pregnancy is a risk for the baby.
Insulin resistance increases rapidly as the pregnancy progresses. While the A1c of 5.2 is quite reasonable, it measures the last 3 months and it could be that your sugars have recently increased.
In the meantime limit your carbs (particularly sweets, white bread, fruit and fruit juice, soda) and try to walk 30 minutes twice a day, if possible.
I believe there's some confusion on glucose levels so I'll try to clear that up for you. A fasting glucose of 97 mg/dl is not high but is leaning towards the upper range of normal.
Normal fasting is between 60/70 to 99 mg/dl
Prediabetes is 100 to 125 mg/dl
Diabetes is considered 126 mg/dl and above
The 5.2% A1c does indicate a slightly elevated level of 103 mg/dl but I would rule that towards your pregnancy. What you can do to help yourself and baby is pay strict attention to your nutrition by minimizing your carb intake [and of course sugary foods], and try walking around your neighborhood to help burn off the excess glucose. Most of the time, eating properly can keep your glucose levels from becoming too high or too low. Eating properly can also help you avoid needing medication. Good luck