Fetching details from the dictionary...
there (place relatively near listener)
there (place just mentioned); that place
then (of some incident just spoken of); that (of point just raised)
そこで待っていてね。
Wait there for me.
そこが一番いい場所です。
That's the best place.
そこから先は危ないので入れない。
Beyond that point it's dangerous, so you can't enter.