They may search without a warrant 

justifies brief stops and detentions during which the officer can assess whether a crime is being committed. During these stops and detentions, officers are allowed to use the information they obtain to develop probable cause for arrest.