Did Medusa fight perseus while he was cutting off Medusa head?

No. She was asleep when he killed her.