Manager Gareth Ainsworth believes Gillingham must learn to deal with teams who come to Priestfield determined to shut them out.