You also have the right to order them out of, or deny them entry into, your house. They can come in with a warrant of course but there are situations where they don't have to have one.
Ever wondered what crimes an undercover police officer is allowed to commit for the sake of the investigation? It turns out that there are some strict limitations for this process that may sound surprising.