If they don't want you or potential buyer in, they can call police. Police will most likely ask you to leave (under the current political atomsphere...)
Be prepared that you might have to evict the tenant first.
Believe me, you will sell for lot more money without a deadbeat tenant...