Как ты вообще оказался здесь первым?

English Translation

How the hell did you get here first?

How did you even end up here in the first place?

My friend, a native Russian speaker, says that the original translation is correct. He doesn’t think “in the first place” fits.