Sex during the third trimester

I have not had sex since I was 15 weeks & now I'm 31 weeks but I'm not on bed rest or high risk and my doctor never said not to. I was on Google and it said not to have sex cause it can cause early labor or something like that. Is it safe to have sex sit in the 3rd trimester? Can it cause labor?