The output power of class B AIS is 2 watts. At that power, AIS range is normally about 5 -8 nm sometimes more (depending on conditions). Your reception will be based on the transmitter of the target. If they are class A, then the typical range is about 48nm, depending on obstacles etc. If they are class B, the typical range is as stated above.
Normally 5 nm is more than enough time to avoiding hitting someone. :wink7