If it happens that an alpha raptor is near your base and you're worrying about your dinos to be killed, get a swimmer pet and kite it to the water and tadaa enjoy some xp

More Raptor Encountering Tips