Loving your neighbor is important of course, but loving God comes first and loving your neighbor can only be done properly if obeying God comes first.