Rangers pull out first win ahead of tourney as they beat Miles City