The third condition: A person should offer prayers at a place where he sees the possibility of completing the prayers. To pray at a place where one cannot complete the prayers, because of strong winds, or heavy rains or a teeming crowd, will render Namaz void, even if one somehow manages to finish the prayers.
892. If a person offers prayers at a place where it is forbidden to stay, like, under a roof which is about to collapse, his prayers are in order, though he will have committed a sin.