It shall be unlawful for any person to leave or permit to remain outside of any dwelling, building, or other structure, or within any abandoned building, structure, or dwelling under his or her control, any abandoned, unattended, or discarded ice box, refrigerator, or similar appliance or any other container which has a door or lid, snap lock, or other locking device which may not be released from the inside of the ice box, refrigerator, similar appliance, or other container, without either removing the door or lid from the ice box, refrigerator, or similar appliance or other container, or affixing a lock thereon so that the same cannot be opened without the key and, further, keeping the same locked when unattended.