Cardiff manager Neil Warnock has warned his players to avoid 'stupidity' in Sunday's Sky Bet Championship derby against Swansea.