Chief Minister Ashok Gehlot on Sunday said action should be taken against criminals in accordance with law as he criticised the Uttar Pradesh government over gangster-turned-politician Atiq Ahmad and his brother Ashraf being shot dead by three assailants in police custody.