NSW Deputy Premier John Barilaro has warned Western Australia's tough border stance could come to bite Premier Mark McGowan.