My broad answer is yes.
As I've mentioned, the federal government can regulate health and safety by way of criminal law power, and I think that this extends to biosecurity. As I said, if this bill actually dealt with biosecurity across the board and not just on the part of trespassers—if it actually applied to everyone on-farm—then I don't think there would be any jurisdictional issue with it. I'm not a judge and I don't have a crystal ball, but in my opinion it would be a much safer bet constitutionally.
Of course there's the jurisdiction over agriculture. Again, we don't have much case law on it, but we do know that it applies to what happens on farm. Legislation dealing with biosecurity and mandatory requirements could easily fall under the jurisdiction over agriculture. It could, and in my opinion it should.