Electrostatic force follows the inverse square law, F=K/r2. This means that the force on two particles carrying charges increases on decreasing the distance between them. Therefore, as particle A is slightly displaced towards B, the force on B as well as A will increase.