Optimizing border security with stochastic and deterministic strategies