Need advice

Currently 37 weeks and 4 days pregnant. Had my cervix checked at 1pm and I was 2 cm dilated and 70% thinned. Then we came home ended up having sex. Had a bright red blood discharge come out. Ever since then I have been having a light red tint or brown tint discharge. I was wondering how long it should last or what ftm so kinda clueless😔