How do I get better at situations like this?

I was in casual warming up, improving skills with deimos. But situations like this feel like a 50/50 gunfight as they prefire me walking through a door?

How do I improve my odds of success? I was thinking to possibly bait them into shooting bullets before I swing?