A model checking approach to countering the dynamics of infection propagation over network