I have open borders agreement with an AI 

But when I try to enter it says I must declare war: