sex while pregnant

so, about 9 weeks ago i had some bad bleeding when i was 15 weeks pregnant. my OB placed me on pelvic rest. but ive been off for a while now, but still havent had sex with my SO..... so i guess my question is, how often is it safe to have sex/orgasm at 24 weeks? im being so paranoid still, but i cant help it. NOTE: I havent had any bleeding in over 8 weeks