As you had unprotected sex during the end of period, you were in safe period. But not safe 100% from unwanted pregnancy
It may be early abortion
bleeding or menstrual irregularity problem as twice bleeding in this month.
Breast tenderness,bloating may be due to PMS occurs prior to period.
As you got period,there is no chance of carrying a pregnancy. You may do a fresh blood test
for HCG to rule out abortion bleeding.
If negative result,then take only supportive treatment for period irregularity (basically hormonal
imbalance) with consultation of gynecologist.
For more suggestion,you mail me...firstname.lastname@example.org