when to have sex ?

my doctor told me it’s best to have sex every other day for the best chances of conceiving but I’m wondering is it better to have sex the day before ovulation or the day I ovulate ?