Police can legally enter private property unannounced and shut down a meth lab if it presents an imminent safety hazard. This isn't trespassing. They will not be liable for any loss you suffer as a result as long as their actions are judged to be "reasonable". There is an extensive body of case law on this (at least regarding physical places, not computers).