The daily five prayers must be performed in time under any circumstance! The detailed method of praying was taught by God!
Verses 238-239 of Chapter 2:
Guard strictly (five obligatory) As-Salawat (the prayers)
especially the Middle Salah. And stand before Allah with obedience. And if you fear (an enemy), (perform Salah) on foot or riding. And
when you are in safety, then remember Allah (pray) in the manner He has
taught you, which you knew not (before).