A warrantless arrest is only allowed under conditions set by the rules of criminal procedure: when the person commits the crime in the presence of the officer, or when there is probable cause to believe a crime has just been committed, or if it is a prisoner escaping from jail.