Sex after c-section

My discharge instructions were pelvic rest for 4 weeks, but my postpartum exam isn’t until 6 weeks. I’m confused, do I wait 4wks or wait until after the PP exam?