(2) If an officer, after having demanded admission into the premises of a brewer and declared his or her name and business, is not immediately admitted, the officer and any person acting in his or her aid, may at any time, either by day or night (but at night only in the presence of a police officer) break open any door or window of the premises or break through any wall thereof, for the purpose of obtaining admission, and the brewer is liable to a fine of $2,500.