Use an ant moat.
Read more: Hummingbird Feeder Ants