There is no sure and safe method, even condom as it still can break.
As a guide, I will only cum inside my girl on first 3 days after her period. After that I will use withdrawal. So far so good, she didn't get pregnant. Even if she get pregnant, there is no problem as we planned to get married soon.