A 26-year-old man was detained in Mumbai for trying to gate-crash a Salman Khan film set and threatening security by mentioning the Bishnoi gang.