They have ◄rejected good moral standards/quit doing what everyone knows is right►. They have imitated what the prophet Balaam, the son of Bosor, did long ago. He, acting very unrighteously, wanted the enemies of the Jews to pay him if he asked God ◄to curse/to do bad thing to► the Jews.