Welcome to e health forum.
With any abdominal surgery or even with keyhole procedure (laparoscopy), the integrity of the peritoneal cavity is affected and this causes infection and inflammation within the abdominal cavity.
Hence it will take a few days time for the inflammation to subside and body functions to get back to normal.
When you move or have sexual intercourse, the pelvic organs are irritated and this will result in pain. Hence you should refrain from having intercourse for at least a few days (upto 1 - 2 weeks). You can try having sex earlier, if you are comfortable or have no pain . But you should take precaution and avoid deep penetrative sex, very rough sex, and adopt missionary like positions where the female partner is at rest. But it should be stopped immediately if you have any form of slight discomfort, pain, or distress.
In your case, since you have sharp severe pain when you move, you may need antibiotics to treat any infection and pain killers to help tolerate the pain. Hence you should consult with your doctor for a examination and proper help.
I hope this helps.