Wouldn't it be possible to simply magically erect a gnome-proof fence around the garden?
The Weasleys collectively are fairly good wizards, both practical and theoretical. Hard to believe they could do all the other things shown in the series but can't conjure up a decent fence.