What others intend for bad, God uses for His purpose.
In this case, it would be to teach you a well needed lesson.