To scope out a location closely in advance, learning its layout and routines so you can commit a crime there, usually a holdup.
case the joint
To look over a place carefully with no sinister purpose behind it.
Some definitions on this page are adapted from Wiktionary, used under CC BY-SA 4.0. Credits.